Code

fast-export: print usage when no options specified
authorMiklos Vajna <vmiklos@frugalware.org>
Sat, 3 Jan 2009 03:59:12 +0000 (04:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 3 Jan 2009 22:24:15 +0000 (14:24 -0800)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fast-export.c

index 838633808c3eb4891919aa397716f04fcd4cfe24..e9ee2c79ac0395fde30de329d181733d7be88d40 100644 (file)
@@ -497,6 +497,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
                OPT_END()
        };
 
+       if (argc == 1)
+               usage_with_options (fast_export_usage, options);
+
        /* we handle encodings */
        git_config(git_default_config, NULL);