Skip to content

Commit

Permalink
fast-export: print usage when no options specified
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Jan 3, 2009
1 parent d99bf51 commit dcfdbdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin-fast-export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dcfdbdf

Please sign in to comment.