Fix bugs in command-line argument handling
authorWouter Verhelst <w@uter.be>
Thu, 20 May 2010 13:35:57 +0000 (15:35 +0200)
committerWouter Verhelst <w@uter.be>
Thu, 20 May 2010 13:35:57 +0000 (15:35 +0200)
commitc533a7a372ccdd286f03ecd2c5b8f1cdc3cfcc64
tree66ec11092f9dd74b0c029d1e0d9e6fecd93fcc55
parentba6f1a77e02d70e1d9ae102383b70259cee677a0
Fix bugs in command-line argument handling

We produced an error message when all four flags were used; and we would
only catch such flags if they were produced in the right order (which
was different from the order in the manpage).

Thanks to Fan Zhang for catching these.
nbd-client.c