From: Alexander Berntsen Date: Tue, 30 Jul 2013 20:15:34 +0000 (+0200) Subject: bin/fixpackages: Add -h, fixes bug #394773 X-Git-Tag: v2.2.0_alpha192~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b4abfec2576c6f50d23dd331827c17aace315b3;p=portage.git bin/fixpackages: Add -h, fixes bug #394773 --- diff --git a/bin/fixpackages b/bin/fixpackages index e224b62c2..e29d6eeff 100755 --- a/bin/fixpackages +++ b/bin/fixpackages @@ -14,12 +14,20 @@ import portage portage._internal_caller = True from portage import os from portage.output import EOutput +from portage.util._argparse import ArgumentParser from textwrap import wrap from portage._global_updates import _global_updates mysettings = portage.settings mytrees = portage.db mtimedb = portage.mtimedb +description = """The fixpackages program performs package move updates on + configuration files, installed packages, and binary packages.""" +description = " ".join(description.split()) + +parser = ArgumentParser(description=description) +parser.parse_args() + if mysettings['ROOT'] != "/": out = EOutput() msg = "The fixpackages program is not intended for use with " + \ diff --git a/pym/portage/util/_argparse.py b/pym/portage/util/_argparse.py index 5e6a9ba2d..4227f4c47 100644 --- a/pym/portage/util/_argparse.py +++ b/pym/portage/util/_argparse.py @@ -17,3 +17,4 @@ except ImportError: parser = OptionParser(**kwargs) self.add_argument = parser.add_option self.parse_known_args = parser.parse_args + self.parse_args = parser.parse_args