All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/11] Usage string clean-up
@ 2005-12-13 22:30 freku045
  2005-12-13 22:30 ` [PATCH 7/11] git-fetch: Usage string clean-up, emit usage string at unrecognized option freku045
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: freku045 @ 2005-12-13 22:30 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-12-15 20:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-13 22:30 [PATCH 0/11] Usage string clean-up freku045
2005-12-13 22:30 ` [PATCH 7/11] git-fetch: Usage string clean-up, emit usage string at unrecognized option freku045
2005-12-13 22:30 ` [PATCH 1/11] Trivial usage string clean-up freku045
2005-12-13 22:30 ` [PATCH 3/11] git-revert: Usage " freku045
2005-12-13 22:30 ` [PATCH 5/11] git-applypatch: Usage string clean-up, emit usage string at incorrect invocation freku045
2005-12-14  5:20   ` Junio C Hamano
2005-12-14 12:45     ` Timo Hirvonen
2005-12-15 19:55       ` Fredrik Kuivinen
2005-12-15 20:30         ` Marco Costalba
2005-12-15 20:42           ` Junio C Hamano
2005-12-13 22:30 ` [PATCH 2/11] git-verify-tag: " freku045
2005-12-13 22:30 ` [PATCH 4/11] git-am: Usage string clean-up freku045
2005-12-13 22:30 ` [PATCH 8/11] git-lost-found: Usage string clean-up, emit usage string at incorrect invocation freku045
2005-12-13 22:30 ` [PATCH 6/11] git-cherry: Usage string clean-up, use the 'usage' function freku045
2005-12-13 22:30 ` [PATCH 9/11] git-prune: " freku045
2005-12-13 22:30 ` [PATCH 11/11] git-repack: Usage string clean-up, emit usage at incorrect invocation freku045
2005-12-13 22:30 ` [PATCH 10/11] git-rebase: Usage string clean-up, emit usage string " freku045

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.