Command Line Arguments
There are a number of command line arguments for McIDAS-V. These command line arguments can be applied when starting McIDAS-V using a terminal or command prompt (e.g., from the McIDAS-V-System directory, type: runMcV -noplugins). To view them provide the argument: -help:
mcv -help
- -help (prints this message)
- -properties <property file>
- -installplugin <plugin jar file to install>
- -plugin <plugin jar file, directory, url for this
run>
- -noplugins (do not load any plugins)
- -cleardefault (clear the default bundle)
- -nodefault (do not read in the default bundle file)
- -default <.xidv file>
- -bundle <bundle file or url>
- -oneinstanceport <port number>
(check if another
version of McIDAS-V is running, and if so, pass command line arguments
to it and shut down)
- -nopref (do not read in the user preferences)
- -userpath <user directory to use>
- -sitepath <url path to find site resources>
- -nogui (do not show the main window GUI)
- -data <data source> (load the data source)
- -display <parameter> <display>
- -script <Jython script file name> (run the McIDAS-V script
in the background)
- -image <image file name> (create a jpeg image
and then exit)
- -movie <movie file name> (create a quicktime
movie and then exit)
- -imageserver <port number or .properties file>
(run
McIDAS-V in image generation server mode, and support http requests on
the given port)
- -Dpropertyname=value (define the property value)
- -catalog <url to a chooser catalog>
- -connect <collaboration hostname to connect to>
- -server (run in collaboration server mode)
- -port <port number collaboration server should
listen on>
- -chooser (show the data chooser on start up)
- -printjnlp (print out any embedded bundles from jnlp files)
- -setfiles <datasource pattern> <semi-colon delimited
list of files>
(use
the list of files for the bundled datasource)
- -currenttime <dttm> (override current time
for ISL processing)
- -listresources (list out the resource types)
- -debug (turn on debug printing)
- -debugmessages (turn on language pack debug)
- -recordmessages <language pack file to write missing
entries>
- -trace (print out trace messages)
- -traceonly <trace pattern> (print out trace
messages that match the pattern)
- -logpath <path to log file>
- -tempuserpath (sets up a temporary directory to act as the McIDAS-V directory, allowing for a clean, pristine session)
Specifying data source type
If you load in a data source from the command line using the -data argument, McIDAS-V tries to figure out what type of data it is by looking for patterns in the file or url you specify. If it cannot determine the type, McIDAS-V will prompt the user for the type.
You can add in a "type:" prefix to the argument that will specify the type with:
mcv -data type:somedatatype:the_file_or_url_to_the_data
For the different values for the "somedatatype", see Data Source Types.