On Fri, Dec 17 2021, Junio C Hamano wrote: > + OPT_STRING(0, "detached", &detached_head_name, N_("name"), > + N_("use <name> instead of detached HEAD")), > [...] > + OPT_STRING(0, "detached", &detached_head_name, N_("name"), > + N_("use <name> instead of detached HEAD")), Maybe OPT_STRING_F and PARSE_OPT_NONEG, or does --no-detached make sense?