Skip to content

Commit dcfdbdf

Browse files
Miklos Vajnagitster
authored andcommitted
fast-export: print usage when no options specified
Signed-off-by: Miklos Vajna <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d99bf51 commit dcfdbdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin-fast-export.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
497497
OPT_END()
498498
};
499499

500+
if (argc == 1)
501+
usage_with_options (fast_export_usage, options);
502+
500503
/* we handle encodings */
501504
git_config(git_default_config, NULL);
502505

0 commit comments

Comments
 (0)