]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fix pathspace 1113/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Sep 2017 21:33:40 +0000 (17:33 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Sep 2017 21:33:40 +0000 (17:33 -0400)
It didn't work

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vtysh/vtysh_main.c

index f4c21e69cd904eed61fe8c90ee6adf6861a3d061..003853571f5136d5b3bb1c4a348f65ff91dbac9c 100644 (file)
@@ -179,7 +179,7 @@ struct option longopts[] = {
        {"noerror", no_argument, NULL, 'n'},
        {"mark", no_argument, NULL, 'm'},
        {"writeconfig", no_argument, NULL, 'w'},
-       {"pathspace", no_argument, NULL, 'N'},
+       {"pathspace", required_argument, NULL, 'N'},
        {0}};
 
 /* Read a string, and return a pointer to it.  Returns NULL on EOF. */
@@ -318,7 +318,7 @@ int main(int argc, char **argv, char **env)
 
        /* Option handling. */
        while (1) {
-               opt = getopt_long(argc, argv, "be:c:d:nf:mEhCw", longopts, 0);
+               opt = getopt_long(argc, argv, "be:c:d:nf:mEhCwN:", longopts, 0);
 
                if (opt == EOF)
                        break;