]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Correct the bridge command name in help messages
authorChris Webb <chris@arachsys.com>
Thu, 16 Aug 2012 20:42:37 +0000 (21:42 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Thu, 16 Aug 2012 21:02:46 +0000 (14:02 -0700)
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>
bridge/bridge.c
bridge/fdb.c
bridge/monitor.c

index 9e5f69cedd41c2de6e00e95919f4a478f8a8a14c..4702340a293effd492fed52dd842373328e53dbb 100644 (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++;
index 04984f106531287f9355496b654394c461e52ccf..2bbdaa63310404d96fcc895861760cd7d7d86dcc 100644 (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);
 }
 
index 37468e6e87ce910fec252cd7c9c59fd8faa1d137..3790a846d23bccd7890ef5e5dc196253771f1299 100644 (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++;