{"push_id":943458038,"size":1,"distinct_size":1,"ref":"refs/heads/subcmd","head":"839c06698378d6363a09d7b26dae3db5f1e0a0d9","before":"40282ade83fb1c6b3f7b565d159f69800a68b383","commits":[{"sha":"839c06698378d6363a09d7b26dae3db5f1e0a0d9","author":{"email":"c37150ea8944ca36e316c2ea250e46bfa4e9cb1f@llnl.gov","name":"Mark A. Grondona"},"message":"cmd/flux: use optparse for flux(1) subcommands\n\nConvert flux(1) to use optparse_t for main option processing and the\nhandling of internal or \"builtin\" subcommands.\n\nAll internal flux(1) subcommands are now registered as optparse\nsubcommands. In order to ease the addition of new builtins, builtin\nsubcommands are grouped separately in src/cmd/builtin/*.c and compiled\ninto flux.c.\n\nEach builtin module now exports a single \"registration\" function\nnamed `subcommand_<name>_register`, where <name> is replaced with\nthe basename of the C source file. The registration function is\nresponsible for registering one or more new subcommands with flux.c\noptparse_t object which is passed to the function.\n\nA new script `builtin-cmds-list.sh` automatically generates a table of\nthese functions in builtin-cmds.c for use during flux.c initialization.","distinct":true,"url":"https://api.github.com/repos/grondo/flux-core/commits/839c06698378d6363a09d7b26dae3db5f1e0a0d9"}]}