@matheusbsbs / matheus-bagliano / commits / dcfdbdf08b
Fork 0

fast-export: print usage when no options specified

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Jan 3, 2009 at 04:59 UTC dcfdbdf08bbe102bd4806f3c92fb0e43f53a623a
1 file changed +3
builtin-fast-export.c
+3
@@ -497,6 +497,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
497 OPT_END()
498 };
499
500 + if (argc == 1)
501 + usage_with_options (fast_export_usage, options);
502 +
503 /* we handle encodings */
504 git_config(git_default_config, NULL);
505