Update built-in parseopt macros
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | OPT__QUIET(): switch from count-up to true boolparse-options.h | +1 | 0 replies | |
| 2/4 | OPT__VERBOSE(): clarify its expected use by using OPT_COUNTUPparse-options.h | +1 | 0 replies | |
| 3/4 | OPT__DRY_RUN(): use OPT_BOOL, not OPT_BOOLEANparse-options.h | +1 | 0 replies | |
| 4/4 | OPT__FORCE(): clarify its expected use by using OPT_COUNTUPparse-options.h | +1 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Update built-in parseopt macros
As a follow-up to Stefan's series, we may want to think about the following as well:
- OPT__VERBOSE() is defined in terms of OPT_BOOLEAN(). I think we use it to represent increasing levels of verbosity, so we cannot turn this into OPT_BOOL(). Its implementation has to become OPT_COUNTUP().
- OPT__QUIET() is defined in terms of OPT_BOOLEAN(). I offhand do not know if we have increasing levels of quietness. The users need auditing before we can decide to turn this into either OPT_COUNTUP() or OPT_BOOL().
- OPT__DRY_RUN() should probably become OPT_BOOL().
- OPT_FORCE(); do we have levels of forcefulness? If so OPT_COUNTUP(), otherwise OPT_BOOL().
And here is my attempt. The last one is iffy as I didn't bother auditing the existing callers.
Junio C Hamano (4):
OPT__QUIET(): switch from count-up to true bool OPT__VERBOSE(): clarify its expected use by using OPT_COUNTUP OPT__DRY_RUN(): use OPT_BOOL, not OPT_BOOLEAN OPT__FORCE(): clarify its expected use by using OPT_COUNTUP
parse-options.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.4-rc1-210-gf6d87e2