.about.argc(5).about.argc, .about.arg0, .about.arg1, ... .about.arg# - Command line argument support variables
.about.argc integer - Command line argument count
.about.arg0 string - First command line option
.about.arg1 string - Second command line option
.about.arg2 string - Third command line option
...
.about.arg# string - Last command line option (# = .about.argc-1)
These command line variables are only set if the -f command line option is used and they only reflect the options given after this option. For example, if MicroEmacs was launched as follows:
me -p -n @example.emf -f opt0 opt1 opt2 opt3
Then .about.argc would be set to 4, .about.arg0 to "opt0", .about.arg1 to "opt1" etc. up to .about.arg3. Variable .about.arg4 would not be set.
If the -f option is not given then .about.argc and all .about.arg# variables remain unset.
The following example shows how MicroEmacs can be run as find or grep using the single cfind.emf start-up file:
me -p -n @cfind.emf find *.emf
me -p -n @cfind.emf grep -rmi "search-string" *.emf
The cfind.emf macro uses .about.arg0, which will be "find" or "grep", to determine the required functionality and how to interpret the subsequent options.
(c) Copyright JASSPA 2025
Last Modified: 2024/05/08
Generated On: 2025/09/29