standardize usage info string format
This patch puts the usage info strings that were not already in docopt- like format into docopt-like format, which will be a litle easier for end users and a lot easier for translators. Changes include: - Placing angle brackets around fill-in-the-blank parameters - Putting dashes in multiword parameter names - Adding spaces to [-f|--foobar] to make [-f | --foobar] - Replacing <foobar>* with [<foobar>...] Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
addfb21a94
commit
9c9b4f2f8b
@ -38,8 +38,8 @@ static const char *fmt_patch_subject_prefix = "PATCH";
|
||||
static const char *fmt_pretty;
|
||||
|
||||
static const char * const builtin_log_usage[] = {
|
||||
N_("git log [<options>] [<revision range>] [[--] <path>...]\n")
|
||||
N_(" or: git show [options] <object>..."),
|
||||
N_("git log [<options>] [<revision-range>] [[--] <path>...]\n")
|
||||
N_(" or: git show [<options>] <object>..."),
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -1023,7 +1023,7 @@ static const char *set_outdir(const char *prefix, const char *output_directory)
|
||||
}
|
||||
|
||||
static const char * const builtin_format_patch_usage[] = {
|
||||
N_("git format-patch [options] [<since> | <revision range>]"),
|
||||
N_("git format-patch [<options>] [<since> | <revision-range>]"),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user