Updated ShowUsage for the new commands
authorJohn Hodge <[email protected]>
Fri, 7 Jan 2011 03:33:53 +0000 (11:33 +0800)
committerJohn Hodge <[email protected]>
Fri, 7 Jan 2011 03:33:53 +0000 (11:33 +0800)
src/client/main.c

index 94da826..f433cae 100644 (file)
@@ -287,27 +287,33 @@ void ShowUsage(void)
 {
        printf(
                "Usage:\n"
-               "\tdispense\n"
-               "\t\tShow interactive list\n"
-               "\tdispense <item>\n"
-               "\t\tDispense named item\n"
-               "\tdispense give <user> <ammount> \"<reason>\"\n"
-               "\t\tGive some of your money away\n"
-               "\tdispense acct [<user>]\n"
-               "\t\tShow user balances\n"
-               "\tdispense acct <user> [+-=]<ammount> \"<reason>\"\n"
-               "\t\tAlter a account value (Coke members only)\n"
+               "    dispense\n"
+               "        Show interactive list\n"
+               "    dispense <item>\n"
+               "        Dispense named item\n"
+               "    dispense give <user> <ammount> \"<reason>\"\n"
+               "        Give some of your money away\n"
+               "    dispense acct [<user>]\n"
+               "        Show user balances\n"
+               "    dispense acct <user> [+-=]<ammount> \"<reason>\"\n"
+               "        Alter a account value (Coke members only)\n"
+               "    dispense user add <user>\n"
+               "        Create new coke account (Wheel members only)\n"
+               "    dispense user type <flags>\n"
+               "        Alter a user's flags\n"
+               "        <flags> is a comma-separated list of user,coke,wheel,disabled\n"
+               "        Flags are removed by preceding the name with '-' or '!'\n"
                "\n"
                "General Options:\n"
-               "\t-u <username>\n"
-               "\t\tSet a different user (Coke members only)\n"
-               "\t-h / -?\n"
-               "\t\tShow help text\n"
-               "\t-G\n"
-               "\t\tUse alternate GUI\n"
-               "\t-m <min balance>\n"
-               "\t-M <max balance>\n"
-               "\t\tSet the Maximum/Minimum balances shown in `dispense acct`\n"
+               "    -u <username>\n"
+               "        Set a different user (Coke members only)\n"
+               "    -h / -?\n"
+               "        Show help text\n"
+               "    -G\n"
+               "        Use alternate GUI\n"
+               "    -m <min balance>\n"
+               "    -M <max balance>\n"
+               "        Set the Maximum/Minimum balances shown in `dispense acct`\n"
                );
 }
 

UCC git Repository :: git.ucc.asn.au