Actions
Bug #14629
closedOption Parser bug
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
Description
Reproduce process:
Case 1:
$ruby testarg.rb --fail-if-changed
"fail if change arg provided"
Case 2:
$ruby testarg.rb --fail-if-change
"fail if change arg provided"
Case 3:
$ruby testarg.rb --fail-if-chang
"fail if change arg provided"
Expected result:
Only case 1 is valid because only one argument is defined "--fail-if-changed", case 2 and 3 should return error but they parse arguments wrongly,
Files
Updated by xz0r (xz0r xz0r) over 6 years ago
- Subject changed from Option Parser parsing error to Option Parser parsing bug
Updated by xz0r (xz0r xz0r) over 6 years ago
- Subject changed from Option Parser parsing bug to Option Parser bug
Updated by xz0r (xz0r xz0r) over 6 years ago
- ruby -v changed from ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] to ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
Updated by nobu (Nobuyoshi Nakada) over 6 years ago
- Status changed from Open to Rejected
It is a spec, the long option name completion, so that users do not have to type the whole option name.
Updated by xz0r (xz0r xz0r) over 6 years ago
nobu (Nobuyoshi Nakada) wrote:
It is a spec, the long option name completion, so that users do not have to type the whole option name.
Thanks ! Sorry for the false positive
Actions
Like0
Like0Like0Like0Like0Like0