[PATCH] samba-tool: treat "samba-tool help X" like "samba-tool X --help"

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Thu Dec 21 03:21:09 UTC 2017


There are two reasons for this:

1) it makes browsing the help tree slightly easier. With the help of
the up-arrow, it is simpler to go:

$ samba-tool help
$ samba-tool help drs
$ samba-tool help drs showrepl

than

$ samba-tool --help
$ samba-tool drs --help
$ samba-tool drs showrepl --help

This smallish difference adds up if you are (like me) lazy and ignorant
about samba-tool commands. (yes, *I* know I could use "-h", but my
fingers don't).

2) It helps us to fit in. This is the latest rage. Everyone does it. You
can go "git help log", "perf help record", "openstack help floating ip
create". We should try to look like a part of the modern unix ecosystem.

The downside is the samba-tool help test now calls samba-tool 218 times,
which takes 28 seconds on my machine.

cheers,
Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-tool-help.patch
Type: text/x-patch
Size: 4532 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171221/a571e74e/samba-tool-help.bin>


More information about the samba-technical mailing list