Skip to content

Commit 939ec04

Browse files
author
boredzo
committed
compare_argument really should return a status code when a short or long option has been encountered.
--HG-- extra : convert_revision : svn%3A8004e3bd-eb19-0410-9871-facfd23b1fe4%4081
1 parent b7c8796 commit 939ec04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compare_argument.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ enum option_comparison_result compare_argument(const char option_name_char, cons
7171
}
7272
*out_option_arg = arg;
7373
}
74+
result = option_comparison_longopt;
7475
} else {
7576
//No match.
7677
result = option_comparison_nomatch;
@@ -93,6 +94,7 @@ enum option_comparison_result compare_argument(const char option_name_char, cons
9394
}
9495
*out_option_arg = arg;
9596
}
97+
result = option_comparison_shortopt;
9698
}
9799
}
98100

0 commit comments

Comments
 (0)