Bug#850475: [PATCH] common: Avoid unnecessary ambiguity in argparse.

2017-01-10 Thread Werner Koch
On Tue, 10 Jan 2017 22:16, d...@fifthhorseman.net said: > If two struct ARGPARSE_OPTS share a prefix in their long_opt name, but > have the exact same short_opt and flags, they are aliases and not Smart. Please push with the usual two dashes before the free form text. Salam-Shalom, Werner

Bug#850475: [PATCH] common: Avoid unnecessary ambiguity in argparse.

2017-01-10 Thread Daniel Kahn Gillmor
* common/argparse.c (find_long_option): Avoid unnecessary ambiguity. If two struct ARGPARSE_OPTS share a prefix in their long_opt name, but have the exact same short_opt and flags, they are aliases and not distinct options. Avoid reporting this as an ambiguity, so that (for example) both --clears