1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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
This commit is contained in:
Stefan Metzmacher 2012-10-08 12:50:52 +02:00
parent 309434a773
commit 8746faf846

View File

@ -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")