From 20bb51145b43389449bafa5d8ad394c41105f8e2 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 4 Sep 2010 16:30:43 +0800 Subject: [PATCH] Options: add generic usage option --- pyfpdb/Options.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/Options.py b/pyfpdb/Options.py index 11ef9d43..19139278 100644 --- a/pyfpdb/Options.py +++ b/pyfpdb/Options.py @@ -60,6 +60,9 @@ def fpdb_options(): default = 'EMPTY') parser.add_option("-v", "--version", action = "store_true", help = _("Print version information and exit.")) + parser.add_option("-u", "--usage", action="store_true", dest="usage", default=False, + help=_("Print some useful one liners")) + (options, argv) = parser.parse_args() return (options, argv)