From: Seth Vidal Date: Thu, 7 Oct 2010 20:41:51 +0000 (-0400) Subject: fix up the usage output for modifyrepo X-Git-Tag: upstream/0.9.9~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ffec6989ecbeeafe55720d165d0329be30d827a;p=tools%2Fcreaterepo.git fix up the usage output for modifyrepo --- diff --git a/modifyrepo.py b/modifyrepo.py index 58ec930..17094a4 100755 --- a/modifyrepo.py +++ b/modifyrepo.py @@ -124,10 +124,11 @@ def main(args): # query options parser.add_option("--mdtype", dest='mdtype', help="specific datatype of the metadata, will be derived from the filename if not specified") + parser.usage = "modifyrepo [options] " (opts, argsleft) = parser.parse_args(args) if len(argsleft) != 2: - print "Usage: %s " % sys.argv[0] + parser.print_usage() return 0 metadata = argsleft[0] repodir = argsleft[1]