replace "parameters" by "arguments" in error messages
When an error message informs the user about an incorrect command invocation, it should refer to "arguments", not "parameters". Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
59ec22464f
commit
b865734760
@ -373,7 +373,7 @@ static int list(int argc, const char **argv, const char *prefix)
|
||||
git_notes_list_usage, 0);
|
||||
|
||||
if (1 < argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_list_usage, options);
|
||||
}
|
||||
|
||||
@ -428,7 +428,7 @@ static int add(int argc, const char **argv, const char *prefix)
|
||||
PARSE_OPT_KEEP_ARGV0);
|
||||
|
||||
if (2 < argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_add_usage, options);
|
||||
}
|
||||
|
||||
@ -506,7 +506,7 @@ static int copy(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (from_stdin || rewrite_cmd) {
|
||||
if (argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_copy_usage, options);
|
||||
} else {
|
||||
return notes_copy_from_stdin(force, rewrite_cmd);
|
||||
@ -514,11 +514,11 @@ static int copy(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
if (argc < 1) {
|
||||
error(_("too few parameters"));
|
||||
error(_("too few arguments"));
|
||||
usage_with_options(git_notes_copy_usage, options);
|
||||
}
|
||||
if (2 < argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_copy_usage, options);
|
||||
}
|
||||
|
||||
@ -595,7 +595,7 @@ static int append_edit(int argc, const char **argv, const char *prefix)
|
||||
PARSE_OPT_KEEP_ARGV0);
|
||||
|
||||
if (2 < argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(usage, options);
|
||||
}
|
||||
|
||||
@ -662,7 +662,7 @@ static int show(int argc, const char **argv, const char *prefix)
|
||||
0);
|
||||
|
||||
if (1 < argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_show_usage, options);
|
||||
}
|
||||
|
||||
@ -812,7 +812,7 @@ static int merge(int argc, const char **argv, const char *prefix)
|
||||
error(_("must specify a notes ref to merge"));
|
||||
usage_with_options(git_notes_merge_usage, options);
|
||||
} else if (!do_merge && argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_merge_usage, options);
|
||||
}
|
||||
|
||||
@ -960,7 +960,7 @@ static int prune(int argc, const char **argv, const char *prefix)
|
||||
0);
|
||||
|
||||
if (argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_prune_usage, options);
|
||||
}
|
||||
|
||||
@ -982,7 +982,7 @@ static int get_ref(int argc, const char **argv, const char *prefix)
|
||||
git_notes_get_ref_usage, 0);
|
||||
|
||||
if (argc) {
|
||||
error(_("too many parameters"));
|
||||
error(_("too many arguments"));
|
||||
usage_with_options(git_notes_get_ref_usage, options);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user