From 9aac9539294a607d9968a0cbfa46cd5a963ce309 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Aug 2013 18:21:37 -0700 Subject: [PATCH] glsa-check: portage.util._argparse --- bin/glsa-check | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) 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