-
9
pages
-
English
-
Documents
Description
ritopt TutorialDamian EadsOctober 24, 2001Contents1 Introduction...2 Option ConventionsAlthough, several command line option standards have been preposed, ritoptfollows the conventions prescribed in the opt package. I will attempt, however,to outline them in this section.2.1 Short OptionsA short option usually begins with a dash character ’--’ followed by theshort option name as shown in the following example.# A short option.myprogram -s2.1.1 Invoking several short optionsSeveral short options may be invoked simply by listing them after the dashcharacter.# Several short options.myprogram -abcdef# This is equivalent.myprogram -a -b -c -d -e -fValues may not be supplied when options are invoked as a short option list.12.1.2 A mixture of short options and short option listsSupplying short option lists and options with values is perfectly legal.myprogram -a "hello" -bcd -e=152.2 Long OptionsLong options are preceded by two dash characters ’----’ as shown in thefollowing example.myprogram --myoption2.2.1 Long Option ListsUnlike short options, long options cannot be listed at this time. However thefeature is being considered for a future release using the following convention.myprogram --longoption1,longoption2,longoption32.3 Supplying ValuesThere are several ways to supply values to an option. ritopt supports threeforms: assignment, open, and boolean forms.2.3.1 Assignment FormPlace an equal sign ’=’ directly after the short or long ...
-
Publié par
-
Langue
English