samba-tool: Make the 'bytes' option type avaiable
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 21 Jun 2019 01:12:01 +0000 (13:12 +1200)
committerGary Lockyer <gary@samba.org>
Tue, 2 Jul 2019 02:23:08 +0000 (02:23 +0000)
commit4644416a92179f1f44ebcce90be1a058da4b3b30
tree154b898fc073db25973bfd4e4f9656163f0fa2ef
parentb8446c080254053b63dbb8aca7d5332e044a9c93
samba-tool: Make the 'bytes' option type avaiable

Allow samba tool to use the custom bytes option type.
  Option("--size", type="bytes", metavar="SIZE")
To allow the input of file and memory sizes using unit suffixes i.e.  2Gb,
4KiB ...

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/__init__.py