Previous: , Up: Option parsing   [Contents][Index]


7.2.2 ‘global_options()

The ‘global_options()’ function is a simple convenience call to include flags that can be used inside most ‘cpt’ tools. It defines the following flags:

FlagLong OptionCalls
-f--forceCPT_FORCE
-y--no-promptCPT_PROMPT
--rootCPT_ROOT
-h--helpusage()
-v--versionversion()
--verboseCPT_VERBOSE

This function can take two arguments:

silent

If this argument is specified, the function does not print the usage information defined by its flags.

compact

If this argument is specified, the function only prints the help output of the --help and --version flags.