Codebase list libmousex-getopt-perl-upstream / 44d41ca
Merge pull request #10 from pghmcfc/copied Cope with GLD output changes in version 0.100 FUJI Goro authored 7 years ago GitHub committed 7 years ago
2 changed file(s) with 17 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4848 \t--foo A foo
4949 }
5050 :
51 $Getopt::Long::Descriptive::VERSION == 0.099 ?
5152 qq{usage: 104_override_usage.t [-?] [long options...]
5253 \t-? --usage --help Prints this usage information.
5354 \t--foo INT A foo
55 }
56 :
57 qq{usage: 104_override_usage.t [-?] [long options...]
58 \t-? --usage --help Prints this usage information.
59 \t--foo INT A foo
5460 }
5561
5662 ];
3333 --bar Documentation for "bar"
3434 --baz Documentation for "baz"
3535 USAGE
36 if ( $Getopt::Long::Descriptive::VERSION >= 0.099 )
36 if ( $Getopt::Long::Descriptive::VERSION == 0.099 )
3737 {
3838 $expected = <<'USAGE';
3939 usage: 110_sort_usage_by_attr_order.t [-?] [long options...]
4343 --baz STR Documentation for "baz"
4444 USAGE
4545 }
46 if ( $Getopt::Long::Descriptive::VERSION >= 0.100 )
47 {
48 $expected = <<'USAGE';
49 usage: 110_sort_usage_by_attr_order.t [-?] [long options...]
50 -? --usage --help Prints this usage information.
51 --foo STR Documentation for "foo"
52 --bar STR Documentation for "bar"
53 --baz STR Documentation for "baz"
54 USAGE
55 }
4656 $expected =~ s/^[ ]{4}/\t/xmsg;
4757 is($obj->usage->text, $expected, 'Usage text has nicely sorted options');
4858