print-all is ambigious, all is better.
This commit is contained in:
+3
-3
@@ -39,7 +39,7 @@ Usage: blame <package> ... <package>
|
|||||||
def options(self):
|
def options(self):
|
||||||
group = optparse.OptionGroup(self.parser, _("blame options"))
|
group = optparse.OptionGroup(self.parser, _("blame options"))
|
||||||
group.add_option("-r", "--release", action="store", type="int", help=_("Blame for the given release"))
|
group.add_option("-r", "--release", action="store", type="int", help=_("Blame for the given release"))
|
||||||
group.add_option("-a", "--print-all", action="store_true", default=False,
|
group.add_option("-a", "--all", action="store_true", default=False,
|
||||||
help=_("Blame for all of the releases"))
|
help=_("Blame for all of the releases"))
|
||||||
self.parser.add_option_group(group)
|
self.parser.add_option_group(group)
|
||||||
|
|
||||||
@@ -54,9 +54,9 @@ Usage: blame <package> ... <package>
|
|||||||
if self.packagedb.has_package(package):
|
if self.packagedb.has_package(package):
|
||||||
pkg = self.packagedb.get_package(package)
|
pkg = self.packagedb.get_package(package)
|
||||||
release = ctx.get_option('release')
|
release = ctx.get_option('release')
|
||||||
if not release and not ctx.get_option('print_all'):
|
if not release and not ctx.get_option('all'):
|
||||||
self.print_package_info(pkg)
|
self.print_package_info(pkg)
|
||||||
elif ctx.get_option('print_all'):
|
elif ctx.get_option('all'):
|
||||||
for hno, update in enumerate(pkg.history):
|
for hno, update in enumerate(pkg.history):
|
||||||
self.print_package_info(pkg, hno)
|
self.print_package_info(pkg, hno)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user