From: Miklos Vajna Date: Sat, 03 Jan 2009 03:59:12 GMT Subject: [PATCH] fast-export: print usage when no options specified Message-ID: <1230955152-23646-1-git-send-email-vmiklos@frugalware.org> In-Reply-To: <87r63lus6k.fsf@jidanni.org> Signed-off-by: Miklos Vajna --- I found that behaviour surprising as well when I saw it the first time. git rev-list outputs some usage info in that case, git log just logs HEAD. Given that unconditionally exporting HEAD with no arguments is probably not something most users want, here is a patch to make the behaviour like what git rev-list already has. builtin-fast-export.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/builtin-fast-export.c b/builtin-fast-export.c index 8386338..e9ee2c7 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -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); -- 1.6.1