On Fri, 5 Oct 2018 16:50:10 -0700 Stefan Beller <sbeller@xxxxxxxxxx> wrote: > > static int module_config(int argc, const char **argv, const char *prefix) > > { > > + enum { > > + CHECK_WRITEABLE = 1 > > + } command = 0; > > Can we have the default named? Then we would only use states > from within the enum? The default would mean: "no command passed as a CLI *option*" I copied this style from builtin/bisect--helper.c::cmd_bisect__helper() and it's also used in builtin/rebase--helper.c I can add a name for the default enum value but I am not sure what it should be: NO_COMMAND_OPTION, COMMAND_DEFAULT, MODE_DEFAULT? Ciao, Antonio -- Antonio Ospite https://ao2.it https://twitter.com/ao2it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing?