General Information
Tutorials
Reference Manuals
Libraries
Translation Tasks
Tools
Administration
|
New Features of Eli Version 4.1Command-line processingThe command-line processing tool has been rewritten to use a more flexible implementation technique. In the process some erroneous situations that weren't detected before are now detected. Most notably, in previous versions when a positional parameter was specified no usage message was printed if the user did not provide a value for the parameter. This has been fixed. Repeated boolean options are now a count of the number of times the option appears rather than a list of keys each of which have the value 1. This is a potential source of incompatibility with previous versions. The new version also provides some new features, described in the following paragraphs. Previously it was possible to have an integer or string value that was either the next argument or was joined to the option string. I.e., the following were possible
-#23 -m foo It is now possible to have an option where the value can be either the next argument or can be joined to the option string. This is indicated by the keyword "with".
MacroPackage "-m" with strings "Load this macro package"; NumCols "-C" with int "Use this many colours"; NumZaps "-z" with ints "Zap this many times"; It is now possible to have more than one option string that invokes a particular option. Just list more than one string.
MacroPackage "-m" "mac" with strings "Load this macro package"; NumZaps "-z" "-Zap" "whammo" ints "Zap this many times"; Empty .clp files are now acceptable. The resulting processor will accept standard input, but nothing on the command line.
|