summaryrefslogtreecommitdiff
path: root/builtin/update-server-info.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2010-11-08 19:01:54 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-11-15 10:04:43 -0800
commit76946b76fe3d26507d61cae97aa0676fad24ed92 (patch)
treecb637a3012a3b7f5f448ff660106ba1e2595da09 /builtin/update-server-info.c
parentadd description parameter to OPT__QUIET (diff)
downloadtgif-76946b76fe3d26507d61cae97aa0676fad24ed92.tar.xz
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>
Diffstat (limited to 'builtin/update-server-info.c')
-rw-r--r--builtin/update-server-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/update-server-info.c b/builtin/update-server-info.c
index 2b3fddcc69..b90dce6358 100644
--- a/builtin/update-server-info.c
+++ b/builtin/update-server-info.c
@@ -11,8 +11,7 @@ int cmd_update_server_info(int argc, const char **argv, const char *prefix)
{
int force = 0;
struct option options[] = {
- OPT_BOOLEAN('f', "force", &force,
- "update the info files from scratch"),
+ OPT__FORCE(&force, "update the info files from scratch"),
OPT_END()
};