oslib/getopt_long: allow (unique) short match
authorJens Axboe <axboe@fb.com>
Fri, 22 Apr 2016 22:14:24 +0000 (18:14 -0400)
committerJens Axboe <axboe@fb.com>
Fri, 22 Apr 2016 22:14:24 +0000 (18:14 -0400)
commit603e604eb6d9b3ba9f201a6bff0a18da1a6c0967
treefbec4836376a661a5f0ff5a0cf57370c8b8b0865
parent250e878ab5f26b32facbb6e134f3738aa1aa0120
oslib/getopt_long: allow (unique) short match

The GNU version allows short matches, if they are unique. Our version
does not, since it's weird, but let's at least make them have the
same behavior. Otherwise users will have different behavior for
command line parsing for edge cases, on different platforms.

Signed-off-by: Jens Axboe <axboe@fb.com>
oslib/getopt_long.c