From 8746faf846fb4f4552e648f4e4e05510b8bd1ef4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Oct 2012 12:50:52 +0200 Subject: s4:scripting/python: add '-V' as alias for '--version' metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Mon Oct 8 17:52:52 CEST 2012 on sn-devel-104 --- source4/scripting/python/samba/getopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/getopt.py b/source4/scripting/python/samba/getopt.py index 1818ff31d9..c3c080084e 100644 --- a/source4/scripting/python/samba/getopt.py +++ b/source4/scripting/python/samba/getopt.py @@ -100,7 +100,7 @@ class VersionOptions(optparse.OptionGroup): """Command line option for printing Samba version.""" def __init__(self, parser): optparse.OptionGroup.__init__(self, parser, "Version Options") - self.add_option("--version", action="callback", + self.add_option("-V", "--version", action="callback", callback=self._display_version, help="Display version number") -- cgit