diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-09-06 23:33:40 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-09-06 23:33:40 +0200 |
commit | bd29d4638be86323684e79bfb856774cb23cf0b6 (patch) | |
tree | a7f51aae94a1ad28fa4af9149ac15432f276d53a /vtysh/vtysh_main.c | |
parent | Merge pull request #1092 from donaldsharp/unreachable (diff) | |
download | frr-bd29d4638be86323684e79bfb856774cb23cf0b6.tar.xz frr-bd29d4638be86323684e79bfb856774cb23cf0b6.zip |
vtysh: fix pathspace
It didn't work
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r-- | vtysh/vtysh_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index f4c21e69c..003853571 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; |