add OPT__FORCE
Add OPT__FORCE as a helper macro in the same spirit as OPT__VERBOSE et.al. to simplify defining -f/--force options. Signed-off-by: Rene Scharfe <rene.scharfe@lstfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
d52ee6e613
commit
76946b76fe
@ -121,6 +121,9 @@ There are some macros to easily define options:
|
||||
`OPT__DRY_RUN(&int_var, description)`::
|
||||
Add `-n, \--dry-run`.
|
||||
|
||||
`OPT__FORCE(&int_var, description)`::
|
||||
Add `-f, \--force`.
|
||||
|
||||
`OPT__QUIET(&int_var, description)`::
|
||||
Add `-q, \--quiet`.
|
||||
|
||||
|
Reference in New Issue
Block a user