diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2021-06-01 00:48:24 +0000 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2021-06-10 00:29:32 +0000 |
| commit | fe91e643cb5215efa7269edeb91d2f9577c33258 (patch) | |
| tree | 8405c6324c1d83f48910ec7f8b21a7436af7a014 /python | |
| parent | 8515973dd875cecaa4cbdfc0aca52c6dc4e1d622 (diff) | |
| download | samba-fe91e643cb5215efa7269edeb91d2f9577c33258.tar.gz samba-fe91e643cb5215efa7269edeb91d2f9577c33258.tar.bz2 samba-fe91e643cb5215efa7269edeb91d2f9577c33258.zip | |
samba-tool: stick to the point with --version
We were doing this:
$ bin/samba-tool --version
samba-tool: no such subcommand: --version
4.15.0pre1-DEVELOPERBUILD
$
which is silly. Now we'll just see the version.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/netcmd/__init__.py b/python/samba/netcmd/__init__.py index 620e3751e7f..62fe1380d52 100644 --- a/python/samba/netcmd/__init__.py +++ b/python/samba/netcmd/__init__.py @@ -234,7 +234,7 @@ class SuperCommand(Command): if subcommand in self.subcommands: return self.subcommands[subcommand]._run( "%s %s" % (myname, subcommand), *args) - elif subcommand not in [ '--help', 'help', None ]: + elif subcommand not in [ '--help', 'help', None, '-h', '-V', '--version' ]: print("%s: no such subcommand: %s\n" % (myname, subcommand)) args = [] |
