public class VersionNumber extends Object
Modifier and Type | Field and Description |
---|---|
private String |
m_application
application's own name.
|
Constructor and Description |
---|
VersionNumber(String appName)
ctor: Constructs a new instance with the given application name.
|
Modifier and Type | Method and Description |
---|---|
protected gnu.getopt.LongOpt[] |
generateValidOptions()
Creates a set of options.
|
static void |
main(String[] args) |
void |
showUsage()
Prints the usage string.
|
static void |
showVersion(Version v,
boolean build)
Print the version information onto stdout.
|
private String m_application
public VersionNumber(String appName)
appName
- is the name of the applicationpublic void showUsage()
protected gnu.getopt.LongOpt[] generateValidOptions()
public static void showVersion(Version v, boolean build)
v
- is the version information class.build
- if true, also show build information with version.public static void main(String[] args)
Copyright © 2011 The University of Southern California. All Rights Reserved.