Correct the bridge command name in help messages

The bridge command used to be called br but was renamed bridge. Correct
the outdated references to the br name in the help messages, together with a
typo of '-help' for 'help'.

Signed-off-by: Chris Webb <chris@arachsys.com>
This commit is contained in:
Chris Webb 2012-08-16 21:42:37 +01:00 committed by Stephen Hemminger
parent c487348a9c
commit 9069817033
3 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ static void usage(void) __attribute__((noreturn));
static void usage(void)
{
fprintf(stderr,
"Usage: br [ OPTIONS ] OBJECT { COMMAND | help }\n"
"Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }\n"
"where OBJECT := { fdb | monitor }\n"
" OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails]\n" );
exit(-1);
@ -56,7 +56,7 @@ static int do_cmd(const char *argv0, int argc, char **argv)
return c->func(argc-1, argv+1);
}
fprintf(stderr, "Object \"%s\" is unknown, try \"br help\".\n", argv0);
fprintf(stderr, "Object \"%s\" is unknown, try \"bridge help\".\n", argv0);
return -1;
}
@ -77,7 +77,7 @@ main(int argc, char **argv)
if (matches(opt, "-help") == 0) {
usage();
} else if (matches(opt, "-Version") == 0) {
printf("br utility, 0.0\n");
printf("bridge utility, 0.0\n");
exit(0);
} else if (matches(opt, "-stats") == 0 ||
matches(opt, "-statistics") == 0) {
@ -87,7 +87,7 @@ main(int argc, char **argv)
} else if (matches(opt, "-timestamp") == 0) {
++timestamp;
} else {
fprintf(stderr, "Option \"%s\" is unknown, try \"br -help\".\n", opt);
fprintf(stderr, "Option \"%s\" is unknown, try \"bridge help\".\n", opt);
exit(-1);
}
argc--; argv++;

View File

@ -26,8 +26,8 @@ int filter_index;
static void usage(void)
{
fprintf(stderr, "Usage: br fdb { add | del | replace } ADDR dev DEV\n");
fprintf(stderr, " br fdb {show} [ dev DEV ]\n");
fprintf(stderr, "Usage: bridge fdb { add | del | replace } ADDR dev DEV\n");
fprintf(stderr, " bridge fdb {show} [ dev DEV ]\n");
exit(-1);
}

View File

@ -1,5 +1,5 @@
/*
* brmonitor.c "br monitor"
* brmonitor.c "bridge monitor"
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -31,7 +31,7 @@ int prefix_banner;
static void usage(void)
{
fprintf(stderr, "Usage: br monitor\n");
fprintf(stderr, "Usage: bridge monitor\n");
exit(-1);
}
@ -103,7 +103,7 @@ int do_monitor(int argc, char **argv)
} else if (matches(*argv, "help") == 0) {
usage();
} else {
fprintf(stderr, "Argument \"%s\" is unknown, try \"br monitor help\".\n", *argv);
fprintf(stderr, "Argument \"%s\" is unknown, try \"bridge monitor help\".\n", *argv);
exit(-1);
}
argc--; argv++;