Provide a little bit of help description for the git-p4 "tools".
Signed-off-by: Simon Hausmann <hausmann@kde.org>
Simon Hausmann committed
Mar 19, 2007 at 21:02 UTC
c8c3911685de1185ca7c0afe62bb3964ebc82d38
1 file changed
+4
-1
contrib/fast-import/git-p4.py
+4
-1
@@ -41,6 +41,7 @@ class P4Debug:
41
def __init__(self):
42
self.options = [
43
]
44
+ self.description = "A tool to debug the output of p4 -G."
45
46
def run(self, args):
47
for output in p4CmdList(" ".join(args)):
@@ -51,6 +52,7 @@ class P4CleanTags:
52
self.options = [
53
# optparse.make_option("--branch", dest="branch", default="refs/heads/master")
54
]
55
+ self.description = "A tool to remove stale unused tags from incremental perforce imports."
56
def run(self, args):
57
branch = currentGitBranch()
58
print "Cleaning out stale p4 import tags..."
@@ -108,7 +110,8 @@ except KeyError:
110
printUsage(commands.keys())
111
sys.exit(2)
112
111
-parser = optparse.OptionParser("usage: %prog " + cmdName + " [options]", cmd.options)
113
+parser = optparse.OptionParser("usage: %prog " + cmdName + " [options]", cmd.options,
114
+ description = cmd.description)
115
116
(cmd, args) = parser.parse_args(sys.argv[2:], cmd);
117