From: Zac Medico Date: Sat, 3 Aug 2013 01:21:37 +0000 (-0700) Subject: glsa-check: portage.util._argparse X-Git-Tag: v2.2.0_alpha192~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9aac9539294a607d9968a0cbfa46cd5a963ce309;p=portage.git glsa-check: portage.util._argparse --- diff --git a/bin/glsa-check b/bin/glsa-check index f1aef0423..7fa3688aa 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -14,67 +14,66 @@ import portage portage._internal_caller = True from portage import os from portage.output import green, red, nocolor, white - -from optparse import OptionGroup, OptionParser +from portage.util._argparse import ArgumentParser __program__ = "glsa-check" __author__ = "Marius Mauch " __version__ = "1.0" -def cb_version(*args, **kwargs): - """Callback for --version""" - sys.stderr.write("\n"+ __program__ + ", version " + __version__ + "\n") - sys.stderr.write("Author: " + __author__ + "\n") - sys.stderr.write("This program is licensed under the GPL, version 2\n\n") - sys.exit(0) - # option parsing -parser = OptionParser(usage="%prog