14.6.2 Command Line Parser Parameters and Annotations
context parameter | ||
| ||
| ||
context parameter | ||
| ||
| ||
context parameter | ||
| ||
| ||
context parameter | ||
The cmdline.current_program and cmdline.current_command_line parameters provide defaults to start parsing, but they are also set by Parser.parse to match supplied arguments in case they are different than the defaults.
The cmdline.current_flag_string and cmdline.current_containing_flag_string parameters are set when a flag handler is called to report the flag as written by the user. When the value of cmdline.current_flag_string is a short-form flag like "-h", then cmdline.current_containing_flag_string may be set to a combination flag like "-vh" to report more precisely how it was written by the user.
annotation | |
|
This annotation is particularly intended for use with cmdline.flag and cmdline.args.
> def mp :: cmdline.String.to_lib_module_path = "rhombus/pict!private"
> mp
ModulePath('lib ("rhombus/pict.rhm") ! private')