Skip to content

Commit f5f9e97

Browse files
rscharfegitster
authored andcommitted
clean: factorize incompatibility message
Use the standard parameterized message for reporting incompatible options to inform users that they can't use -x and -X together. This reduces the number of strings to translate and makes the UI slightly more consistent. Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 81fb70f commit f5f9e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
971971
dir.flags |= DIR_SHOW_OTHER_DIRECTORIES;
972972

973973
if (ignored && ignored_only)
974-
die(_("-x and -X cannot be used together"));
974+
die(_("options '%s' and '%s' cannot be used together"), "-x", "-X");
975975
if (!ignored)
976976
setup_standard_excludes(&dir);
977977
if (ignored_only)

0 commit comments

Comments
 (0)