cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

wnbd-client: use named arguments and improve help strings #31

Closed petrutlucian94 closed 3 years ago

petrutlucian94 commented 3 years ago

At the moment, wnbd-client only uses positional arguments. This is highly inconvenient as we're adding more arguments.

For example, the "wnbd-client map" syntax looks like this: wnbd-client map <InstanceName> <HostName> <PortName> <ExportName> [<SkipNBDNegotiation> <ReadOnly> <DiskSize> <BlockSize>]

This change adds named optional arguments as well as a simple mechanism of defining command options using Boost. This also allows us to automatically generate better help strings.

While at it, we're adding a "--debug" option and expose soft disconnect parameters.

aserdean commented 3 years ago

Thanks for all the work!