add missing arguments to getopt_long_only call and add --dry-run to --help
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index b2bfc458006655dd920a740511d7d33afce6116e..1050e0a076ac16f85549414ea3d8841e75b26ebd 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -107,6 +107,7 @@ static void display_help(void)
        fprintf(stdout, "  --page PAGENUMBER\n");
        fprintf(stdout, "  --bash\n");
        fprintf(stdout, "  --debug\n");
+       fprintf(stdout, "  --dry-run\n");
        fprintf(stdout, "  --version\n");
        fprintf(stdout, "  --help\n");
 }
@@ -966,7 +967,7 @@ int main(int argc, char *argv[], char *envp[])
        parse_configfile(session);
 
        while (1) {
-               option = getopt_long_only(argc, argv, "dqe:p:P:H:a:A:u:hg:",
+               option = getopt_long_only(argc, argv, "dqe:p:P:H:a:A:u:hg:sn",
                                          options, NULL);
                if (option == -1)
                        break;