fix usage message
authorGerald Carter <jerry@samba.org>
Mon, 16 Dec 2002 16:49:51 +0000 (16:49 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 16 Dec 2002 16:49:51 +0000 (16:49 +0000)
(This used to be commit d06e77b60e123314c4214ffa3e76f70abb8a3cba)

source3/utils/smbcontrol.c

index 933cabdb4b93a702a3fc54647ccd38de5a364f9a..72ac2dd095fe8305d03eeb53a9c8ebf1e4b8e562 100644 (file)
@@ -66,9 +66,9 @@ static void usage(BOOL doexit)
                printf("<destination> <message-type> <parameters>\n\n");
        }
        printf("\t<destination> is one of \"nmbd\", \"smbd\" or a process ID\n");
-       printf("\t<message-type> is one of: ");
+       printf("\t<message-type> is one of:\n");
        for (i=0; msg_types[i].name; i++) 
-           printf("%s%s", i?", ":"",msg_types[i].name);
+           printf("\t\t%s\n", msg_types[i].name);
        printf("\n");
        if (doexit) exit(1);
 }
@@ -380,6 +380,7 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
                        fprintf(stderr, "\tjobpause <printername> <unix jobid>\n");
                        fprintf(stderr, "\tjobresume <printername> <unix jobid>\n");
                        fprintf(stderr, "\tjobdelete <printername> <unix jobid>\n");
+                       fprintf(stderr, "\tprinter <printername> <comment|port|driver> <new value>\n");
                        return False;
                }