swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
built-in variable  

#args

 
 

Purpose

A built-in shelf containing the arguments passed to your OmniMark program. You can pass arguments to your OmniMark program on the command line of the OmniMark Engine or by setting the appropriate project options in OmniMark Studio for Eclipse.

OmniMark reserves all tokens starting with a single hyphen (but not two hyphens) for passing options to the OmniMark Engine. Any other token, or a token starting with -- (two hyphens), is treated as an argument to the OmniMark program.

The #args shelf contains only the command-line arguments, not the OmniMark Engine options.

If your command line contains the arguments:

  input.txt output.txt

you can access these arguments as follows:

  process
     using output as file #args[2]
      submit file #args[1]

#command-line-names is a deprecated synonym for #args

  Related Syntax
   #main-input
 
Related Concepts
   Command line arguments
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.