Code

help: use parseopt
authorJeff King <peff@peff.net>
Sun, 24 Feb 2008 22:16:55 +0000 (17:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Feb 2008 02:31:49 +0000 (18:31 -0800)
commit41eb33bd0cbecf1b441ada91ab186ee49fb086cc
tree18257c59d3ac2348f7c83c6c287135b544d6c3e9
parent923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c
help: use parseopt

This patch converts cmd_help to use parseopt, along with a
few style cleanups, including:

  - enum constants are now ALL_CAPS

  - parse_help_format returns an enum value rather than
    setting a global as a side effect

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c