From: Quentin Young Date: Wed, 6 Sep 2017 21:33:40 +0000 (-0400) Subject: vtysh: fix pathspace X-Git-Tag: frr-4.0-dev~333^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bd29d4638be86323684e79bfb856774cb23cf0b6;p=mirror%2Ffrr.git vtysh: fix pathspace It didn't work Signed-off-by: Quentin Young --- diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index f4c21e69cd..003853571f 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -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;