summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-08 12:50:52 +0200
committerStefan Metzmacher <metze@samba.org>2012-10-08 17:52:52 +0200
commit8746faf846fb4f4552e648f4e4e05510b8bd1ef4 (patch)
treeb7e66b088dd9ac61fe18a627233e0516fa7d42fb /source4
parent309434a77396680b5a40985157da44aaddb5ca71 (diff)
downloadsamba-8746faf846fb4f4552e648f4e4e05510b8bd1ef4.tar.gz
samba-8746faf846fb4f4552e648f4e4e05510b8bd1ef4.tar.bz2
samba-8746faf846fb4f4552e648f4e4e05510b8bd1ef4.zip
s4:scripting/python: add '-V' as alias for '--version'
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Oct 8 17:52:52 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/getopt.py2
1 files changed, 1 insertions, 1 deletions
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")