usage [ what ]
To print the usage of the additional commands, all ASCII files in the defined directories and the user login files $ENV and $HOME/.cshrc (depending on the used shell) are searched for the pattern # usage: command ... .
To list commands in the usage output, add the following line to your commands:
# usage: my_command [ options ] - short command description
Ensure that the alignment is precisely done as in this example, otherwise the output of usage is not aligned and looks messy.
For binary files or not self developed commands to be listed with usage the convention is to add a usage.list file into a searched directory containing the # usage: entries.
Add the [helper] "tag" to the usage string
# usage: my_command [ options ] - [helper] short command description
to indicate that the command is not a fully honed command, but a "helper" script which provides output or functionality which needs further manual intervention.
If $USAGE_PATH is not set the directories edrc/bin/, edrc/lib/, edrc/lib/ksh/, edrc/lib/perl/, edrc/lib/python/, edrc/lib/lua/ and edrc/lib/daemon/ are searched by default.
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.