From: Simon Hausmann Date: Mon, 19 Mar 2007 20:02:30 +0000 (+0100) Subject: Provide a tiny little bit of help X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=55e377d90b4e6b897ab8d464bd3f501917d031f7;p=python%2Ffast-export.git Provide a tiny little bit of help --- diff --git a/git-p4.py b/git-p4.py index 8008156..42efc7d 100755 --- a/git-p4.py +++ b/git-p4.py @@ -41,6 +41,7 @@ class P4Debug: def __init__(self): self.options = [ ] + self.description = "A tool to debug the output of p4 -G." def run(self, args): for output in p4CmdList(" ".join(args)): @@ -51,6 +52,7 @@ class P4CleanTags: self.options = [ # optparse.make_option("--branch", dest="branch", default="refs/heads/master") ] + self.description = "A tool to remove stale unused tags from incremental perforce imports." def run(self, args): branch = currentGitBranch() print "Cleaning out stale p4 import tags..." @@ -108,7 +110,8 @@ except KeyError: printUsage(commands.keys()) sys.exit(2) -parser = optparse.OptionParser("usage: %prog " + cmdName + " [options]", cmd.options) +parser = optparse.OptionParser("usage: %prog " + cmdName + " [options]", cmd.options, + description = cmd.description) (cmd, args) = parser.parse_args(sys.argv[2:], cmd);