diff options
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 37c5e36e..971c79dd 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -356,6 +356,16 @@ parse_args(int argc, char **argv) { int c; + if (argc == 2) + { + if (!strcmp(argv[1], "--version")) + { + fprintf(stderr, "BIRD version " BIRD_VERSION "\n"); + exit(0); + } + if (!strcmp(argv[1], "--help")) + usage(); + } while ((c = getopt(argc, argv, opt_list)) >= 0) switch (c) { |