Functions | |
static ctmbstr | get_final_name (ctmbstr prog) |
Returns the final name of the tidy executable by eliminating the path name components from the executable name. More... | |
static tmbstr | get_option_names (const CmdOptDesc *pos) |
Retrieve the option's name(s) from the structure as a single string, localizing the field values if application. More... | |
static void | help (TidyDoc tdoc, ctmbstr prog) |
Handles the -help service. More... | |
static void | print_help_options (TidyDoc tdoc) |
Outputs all of the complete help options (text). More... | |
Returns the final name of the tidy executable by eliminating the path name components from the executable name.
prog | The path of the current executable. |
|
static |
Retrieve the option's name(s) from the structure as a single string, localizing the field values if application.
For example, this might return -output <file>, -o <file>
.
pos | A CmdOptDesc array item for which to get the names. |
Handles the -help service.
tdoc | The tidy document for which help is showing. |
prog | The path of the current executable. |
|
static |
Outputs all of the complete help options (text).
tdoc | The Tidydoc whose options are being printed. |