git-archive: add '-o' as a alias for '--output'
The '-o' option is commonly used in many tools to specify the output file. Typing '--output' every time is a bit too long to be a practical alternative to redirecting output. But specifying the output name has the advantage of making possible to guess the desired output format by filename extension. Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
98df233e2d
commit
05d3951ec9
@ -71,7 +71,7 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
|
||||
const char *output = NULL;
|
||||
const char *remote = NULL;
|
||||
struct option local_opts[] = {
|
||||
OPT_STRING(0, "output", &output, "file",
|
||||
OPT_STRING('o', "output", &output, "file",
|
||||
"write the archive to this file"),
|
||||
OPT_STRING(0, "remote", &remote, "repo",
|
||||
"retrieve the archive from remote repository <repo>"),
|
||||
|
Reference in New Issue
Block a user