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.
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.