Package org.openstreetmap.josm.gui
Enum ProgramArguments.Option
- java.lang.Object
-
- java.lang.Enum<ProgramArguments.Option>
-
- org.openstreetmap.josm.gui.ProgramArguments.Option
-
- All Implemented Interfaces:
Serializable
,Comparable<ProgramArguments.Option>
- Enclosing class:
- ProgramArguments
public static enum ProgramArguments.Option extends Enum<ProgramArguments.Option>
JOSM command line options.- See Also:
- Help/CommandLineOptions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG
--debug Print debugging messages to consoleDOWNLOAD
--download=minlat,minlon,maxlat,maxlon Download the bounding box
--download=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z)
--download=<filename> Open a file (any file type that can be opened with File/Open)DOWNLOADGPS
--downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
--downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPSGEOMETRY
--geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argumentHELP
--help|-h Show this helpLANGUAGE
--language=<language> Set the languageLOAD_PREFERENCES
--load-preferences=<url-to-xml> Changes preferences according to the XML fileMAXIMIZE
--maximize Launch in maximized modeNO_MAXIMIZE
--no-maximize Do not launch in maximized modeOFFLINE
--offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> Disable access to the given resource(s), delimited by commaRESET_PREFERENCES
--reset-preferences Reset the preferences to defaultSELECTION
--selection=<searchstring> Select with the given searchSET
--set=<key>=<value> Set preference key to valueSKIP_PLUGINS
--skip-pluginsSTATUS_REPORT
--status-report
Show status report with useful information that can be attached to bugsTRACE
--trace Print detailed debugging messages to consoleVERSION
--version Displays the JOSM version and exits
-
Field Summary
Fields Modifier and Type Field Description private String
name
private boolean
requiresArg
-
Constructor Summary
Constructors Modifier Constructor Description private
Option(boolean requiresArgument)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Replies the option nameboolean
requiresArgument()
Determines if this option requires an argument.static ProgramArguments.Option
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProgramArguments.Option[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HELP
public static final ProgramArguments.Option HELP
--help|-h Show this help
-
VERSION
public static final ProgramArguments.Option VERSION
--version Displays the JOSM version and exits
-
STATUS_REPORT
public static final ProgramArguments.Option STATUS_REPORT
--status-report
Show status report with useful information that can be attached to bugs
-
DEBUG
public static final ProgramArguments.Option DEBUG
--debug Print debugging messages to console
-
TRACE
public static final ProgramArguments.Option TRACE
--trace Print detailed debugging messages to console
-
LANGUAGE
public static final ProgramArguments.Option LANGUAGE
--language=<language> Set the language
-
RESET_PREFERENCES
public static final ProgramArguments.Option RESET_PREFERENCES
--reset-preferences Reset the preferences to default
-
LOAD_PREFERENCES
public static final ProgramArguments.Option LOAD_PREFERENCES
--load-preferences=<url-to-xml> Changes preferences according to the XML file
-
SET
public static final ProgramArguments.Option SET
--set=<key>=<value> Set preference key to value
-
GEOMETRY
public static final ProgramArguments.Option GEOMETRY
--geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument
-
NO_MAXIMIZE
public static final ProgramArguments.Option NO_MAXIMIZE
--no-maximize Do not launch in maximized mode
-
MAXIMIZE
public static final ProgramArguments.Option MAXIMIZE
--maximize Launch in maximized mode
-
DOWNLOAD
public static final ProgramArguments.Option DOWNLOAD
--download=minlat,minlon,maxlat,maxlon Download the bounding box
--download=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z)
--download=<filename> Open a file (any file type that can be opened with File/Open)
-
DOWNLOADGPS
public static final ProgramArguments.Option DOWNLOADGPS
--downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
--downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS
-
SELECTION
public static final ProgramArguments.Option SELECTION
--selection=<searchstring> Select with the given search
-
OFFLINE
public static final ProgramArguments.Option OFFLINE
--offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> Disable access to the given resource(s), delimited by comma
-
SKIP_PLUGINS
public static final ProgramArguments.Option SKIP_PLUGINS
--skip-plugins
-
-
Field Detail
-
requiresArg
private final boolean requiresArg
-
-
Constructor Detail
-
Option
private Option(boolean requiresArgument)
-
-
Method Detail
-
values
public static ProgramArguments.Option[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProgramArguments.Option c : ProgramArguments.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgramArguments.Option valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
requiresArgument
public boolean requiresArgument()
Determines if this option requires an argument.- Returns:
true
if this option requires an argument,false
otherwise
-
-