зеркало из https://github.com/microsoft/git.git
Provide a little bit of help description for the git-p4 "tools".
Signed-off-by: Simon Hausmann <hausmann@kde.org>
This commit is contained in:
Родитель
86949eef40
Коммит
c8c3911685
|
@ -41,6 +41,7 @@ class P4Debug:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.options = [
|
self.options = [
|
||||||
]
|
]
|
||||||
|
self.description = "A tool to debug the output of p4 -G."
|
||||||
|
|
||||||
def run(self, args):
|
def run(self, args):
|
||||||
for output in p4CmdList(" ".join(args)):
|
for output in p4CmdList(" ".join(args)):
|
||||||
|
@ -51,6 +52,7 @@ class P4CleanTags:
|
||||||
self.options = [
|
self.options = [
|
||||||
# optparse.make_option("--branch", dest="branch", default="refs/heads/master")
|
# 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):
|
def run(self, args):
|
||||||
branch = currentGitBranch()
|
branch = currentGitBranch()
|
||||||
print "Cleaning out stale p4 import tags..."
|
print "Cleaning out stale p4 import tags..."
|
||||||
|
@ -108,7 +110,8 @@ except KeyError:
|
||||||
printUsage(commands.keys())
|
printUsage(commands.keys())
|
||||||
sys.exit(2)
|
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);
|
(cmd, args) = parser.parse_args(sys.argv[2:], cmd);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче