• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*******************************************************************************
2  * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *    Marc R. Hoffmann - initial API and implementation
10  *
11  *******************************************************************************/
12 package org.jacoco.cli.internal;
13 
14 import org.kohsuke.args4j.CmdLineParser;
15 
16 /**
17  * Parser which remembers the parsed command to have additional context
18  * information to produce help output.
19  */
20 public class CommandParser extends CmdLineParser {
21 
22 	private final Command command;
23 
CommandParser(final Command command)24 	CommandParser(final Command command) {
25 		super(command);
26 		this.command = command;
27 	}
28 
getCommand()29 	Command getCommand() {
30 		return command;
31 	}
32 
33 }
34