Skip to contentSkip to conversation

cg-help: dynamically list commands

PATCH New Jonas Fonseca 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cg-help: dynamically list commands

Use code from the make-cogito-asciidoc script to make the command listing dynamic and hopefully always up-to-date by grepping the USAGE strings.

---

 cg-commit |    2 +-
 cg-help   |   47 +++++++++++++++++++++--------------------------
 2 files changed, 22 insertions(+), 27 deletions(-)
cg-commit +1 -1
@@ -72,7 +72,7 @@
 # EDITOR::
 #	The editor used for entering revision log information.
 
-USAGE="cg-commit [-mMESSAGE]... [-C] [-e | -E] [FILE]..."
+USAGE="cg-commit [-mMESSAGE]... [-C] [-e | -E] [FILE]... < MESSAGE"
 
 . ${COGITO_LIB}cg-Xlib
 
cg-help +21 -26

61 lines not on this page · raw message

Signature · 1 line
Jonas Fonseca