[PATCH 0/11] Usage string clean-up
- From
freku045@student.liu.se <freku045@student.liu.se>
- Date
- Dec 13, 2005, 22:30 UTC
- Message-ID
- <11345130302438-git-send-email-freku045@student.liu.se>
Hi,
This is a redone version of the usage string clean-up patch series. It should apply cleanly on top of the current 'pu' branch.
This version is supposed to get the details right.
The scripts are supposed to set the variable USAGE to some suitable value before they source git-sh-setup. Optionally they can also set LONG_USAGE to a more descriptive help message.
* --help makes the scripts print the (long) usage string and exit cleanly. * Unrecognized options prints the usage string and exits non-cleanly. * The printed string is of the form "Usage: $0 options". The "Usage: $0 " part can easily be changed by changing git-sh-setup.sh
The real value of this series is that all commands prints a usage message when they get '--help'.
I have left *.perl for a later patch.
git-add.sh | 13 +++---------- git-am.sh | 10 +++------- git-applymbox.sh | 6 +----- git-applypatch.sh | 4 ++++ git-checkout.sh | 6 ++---- git-cherry.sh | 13 +++++-------- git-clone.sh | 2 +- git-commit.sh | 5 +---- git-count-objects.sh | 4 +++- git-fetch.sh | 5 +++++ git-format-patch.sh | 25 ++++++++----------------- git-grep.sh | 7 +++++-- git-lost-found.sh | 10 +++++++++- git-merge.sh | 6 ++---- git-prune.sh | 3 ++- git-pull.sh | 13 ++----------- git-push.sh | 7 ++----- git-rebase.sh | 5 +++-- git-repack.sh | 2 ++ git-request-pull.sh | 12 +++++------- git-reset.sh | 6 ++---- git-resolve.sh | 6 ++---- git-revert.sh | 19 +++++-------------- git-tag.sh | 14 +++----------- git-verify-tag.sh | 14 ++++++++------ 25 files changed, 88 insertions(+), 129 deletions(-)
- Fredrik