command line examples
Todd Geist
todd at geistinteractive.com
Fri May 6 11:10:52 EDT 2011
The current user guide does have the following section on page 146
*Command-line argument variables*
If you start up the application from a command line, the command name is
stored in the variable $0 and any arguments passed on the command line are
stored in numbered variables starting with the *$ *character.
For example, if you start the application by typing the following shell
command:
myrevapp -h name then the variable $0 contains "myrevapp" (the name of the
application), $1 contains
"-h", and $2 contains "name".
*Note: *Command-line argument variables behave like global variables and can
be used
in any handler. However, you do not need to use the *global *command to
declare them
before using them.
Is this just left over cruft?
Todd
Todd Geist
------------------------------
geist interactive <http://www.geistinteractive.com>
805-419-9382
More information about the use-livecode
mailing list