"阿德烈 via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: ZheNing Hu <adlternative@xxxxxxxxx> > > According to the "Error Messages" section of > Documentation/CodingGuidelines, we should not end in a full > stop or start with a capital letter. Yup, error("message"), die("message") and warn("messages") lack the final full stop and starts with lowercase. > OPT_CMDMODE(0, "abort", &resume.mode, > - N_("restore the original branch and abort the patching operation."), > + N_("restore the original branch and abort the patching operation"), > RESUME_ABORT), But is this an error message? I do not think so. > ... > struct option options[] = { > - OPT__QUIET(&quiet, N_("Suppress output for setting url of a submodule")), > + OPT__QUIET(&quiet, N_("suppress output for setting url of a submodule")), > OPT_END() > }; Having said that, I do not *mimd* standardising the usage help strings in the same way. I do not think the "Error Messages" section is the one we want to use for the justification of this patch. Perhaps a preparatory patch like the attached would be a good way forward? I dunno. ---- >8 -------- >8 -------- >8 -------- >8 -------- >8 ---- Subject: parse-options: format argh like error messages "Keep it homogeneous across the repository" is in general a guideline that can be used to converge to a good practice, but we can be a bit more prescriptive in this case. Just like the messages we give die(_("...")) are formatted without the final full stop and without the initial capitalization, most of the argument help text are already formatted that way, and we want to encourage that as the house style. Noticed-by: ZheNing Hu <adlternative@xxxxxxxxx> Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> --- parse-options.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git c/parse-options.h w/parse-options.h index 7030d8f3da..ff6506a504 100644 --- c/parse-options.h +++ w/parse-options.h @@ -82,9 +82,9 @@ typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx, * stores pointers to the values to be filled. * * `argh`:: - * token to explain the kind of argument this option wants. Keep it - * homogeneous across the repository. Should be wrapped by N_() for - * translation. + * token to explain the kind of argument this option wants. Does not + * begin in capital letter, and does not end with a full stop. + * Should be wrapped by N_() for translation. * * `help`:: * the short help associated to what the option does.