[projects/git-slug: 29/170] A little more helpful help message

glen glen at pld-linux.org
Mon Sep 21 21:41:15 CEST 2015


commit 12bbbc719783c2121c7800efdd2d42fd5d4b625b
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Mon Sep 19 17:41:10 2011 +0100

    A little more helpful help message
    
    Try to indicate in help message that it is possible to get more
    information about slug commands with slug.py command -h and that
    commands accept options.

 slug.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/slug.py b/slug.py
index 6cbf0e3..86459bf 100755
--- a/slug.py
+++ b/slug.py
@@ -147,7 +147,7 @@ common_options.add_argument('-u', '--user',
 parser = argparse.ArgumentParser(description='PLD tool for interaction with git repos',
         formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 
-subparsers = parser.add_subparsers(help='sub-command help')
+subparsers = parser.add_subparsers(help='[-h] [options]')
 clone = subparsers.add_parser('update', help='fetch repositories', parents=[common_options],
         formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 clone.add_argument('-b', '--branch', help='branch to fetch', action=DelAppend, default=['master'])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list