[PATCH 0/25] Usage message clean-up

From: <freku045@student.liu.se>
Date: 2005-12-11 06:37:56
This patch series is supposed to clean-up usage strings in *.sh and
*.perl. I have gone through most of the scripts, but have left the
following programs for various reasons.

No obvious fix:
  git-log.sh
  git-parse-remote.sh
  git-rebase.sh

Still todo:
  git-archimport.perl
  git-cvsexportcommit.perl
  git-cvsimport.perl
  git-svnimport.perl
  git-applymbox.sh
  git-applypatch.sh
  git-fmt-merge-msg.perl
  cmd-rename.sh
  git-ls-remote.sh
  git-merge-octopus.sh
  git-merge-one-file.sh
  git-merge-ours.sh
  git-merge-resolve.sh
  git-merge-stupid.sh
  git-octopus.sh
  git-parse-remote.sh



I have tried to follow the following rules:

* Any unrecognised options should make the script die with the usage
  message.
* -h and --help makes the script die with the usage message.
* The message is printed to stderr.
* The message is of the form "usage: $0 options"

I am not convinced that the last bullet point is the best way to do
things. Using "$0" is probably best for Git developers but using "git
program-name" is probably least confusing for users, especially if we
are going to move the git-* binaries away from /usr/bin. Another
option is "basename $0". What do you think?

--

 Documentation/git-revert.txt |    2 +
 git-bisect.sh                |    2 +
 git-branch.sh                |    2 +
 git-checkout.sh              |    2 +
 git-cherry.sh                |   18 ++++++++++--
 git-clone.sh                 |    2 +
 git-commit.sh                |    2 +
 git-count-objects.sh         |   11 +++++++
 git-fetch.sh                 |    8 +++++
 git-format-patch.sh          |    3 +-
 git-grep.sh                  |   11 ++++++-
 git-lost-found.sh            |   12 +++++++-
 git-merge.sh                 |    2 +
 git-mv.perl                  |   10 ++++++-
 git-prune.sh                 |    2 +
 git-pull.sh                  |    3 +-
 git-push.sh                  |    2 +
 git-relink.perl              |   10 +++----
 git-repack.sh                |    7 ++++-
 git-request-pull.sh          |    6 ++--
 git-reset.sh                 |    2 +
 git-revert.sh                |    4 +--
 git-send-email.perl          |   62 +++++++++++++++++++++++-------------------
 git-status.sh                |   12 +++++++-
 git-tag.sh                   |   10 +------
 git-verify-tag.sh            |   10 +++----
 26 files changed, 142 insertions(+), 75 deletions(-)

- Fredrik

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Dec 11 06:38:52 2005

This archive was generated by hypermail 2.1.8 : 2005-12-11 06:42:59 EST