diff options
author | rhatto <rhatto> | 2006-10-12 20:00:57 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-12 20:00:57 +0000 |
commit | 728a4ae094e7dcbad4d763dc83e47e114fcf4c08 (patch) | |
tree | f9f19397c2d9fb8bb31a0ff473a9b7495301270f | |
parent | 9661be0e3eacd2d66434297c2c20059506f9e425 (diff) | |
download | firma-728a4ae094e7dcbad4d763dc83e47e114fcf4c08.tar.gz firma-728a4ae094e7dcbad4d763dc83e47e114fcf4c08.tar.bz2 |
new function AdminHelp and Usage update
-rwxr-xr-x | firma | 48 |
1 files changed, 30 insertions, 18 deletions
@@ -40,11 +40,9 @@ GnuPG-based encrypted mailing list manager. If option -a is given, read standard input for tasks to be performed. Tasks can be one or more of the following: +`AdminHelp` - use EMAIL-ADDRESS use the given address for message delivery instead - of the primary address on key - -For help in config file paramaters, type $(basename $0) --help config +For help in admin and config paramaters, type $(basename $0) --help task-name Report bugs to <firma@sarava.org>, encrypting the message using the public key 0xD68AFEDC available at keyserver.noreply.org." @@ -1090,19 +1088,7 @@ function ListAdministration { 1) case $1 in help) - # this will be printed to STDOUT, so no indentation here - echo " - quit quit this prompt - help show this help - list show list subscribers - config list configuration - info EMAIL-ADDRESS show info of a given subscriber - sendkey SUBSCRIBER send list pubkey to subscriber - subscribe [..] subscribe users ('subscribe help' for options) - use EMAIL-ADDRESS use the given address for message delivery instead - of the primary address on key - unsub EMAIL-ADDRESS unsubscribe an email from the list -" + AdminHelp ;; quit) return_code=3 @@ -2034,6 +2020,31 @@ function ConfigHelp { SourceListConfig help } + +function AdminHelp { + #------------------------------------------------------------- + # display help on admin commands + # + # parameter(s): none + # depends on function(s): none + # returns: 0 + #------------------------------------------------------------- + + # this will be printed to STDOUT, so no indentation here + echo " + quit quit the admin prompt + help show this help + list show list subscribers + config list configuration + info EMAIL-ADDRESS show info of a given subscriber + sendkey SUBSCRIBER send list pubkey to subscriber + subscribe [..] subscribe users ('subscribe help' for options) + use EMAIL-ADDRESS use the given address for message delivery instead + of the primary address on key + unsub EMAIL-ADDRESS unsubscribe an email from the list +" +} + #------------------------------------------------------------- # main() #------------------------------------------------------------- @@ -2116,7 +2127,8 @@ FUNCTIONS=" EvalConfigParameter SourceFirmaConfig SourceListConfig - ConfigHelp" + ConfigHelp + AdminHelp" for VAR in $GLOBAL_VARS; do declare $VAR |