Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests in S06-other/main-usage.t: use of '--switch "arg1 arg2"' on command line #3949

Closed
p6rt opened this issue May 3, 2015 · 3 comments

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

Migrated from rt.perl.org#124664 (status was 'new')

Searchable as RT124664$

@p6rt
Copy link
Author

p6rt commented May 23, 2015

From @usev6

This ticket is about failing tests (fudged 'todo') in S06-other/main-usage.t which are about using command line switches without '='​:

$ perl6 -e 'sub MAIN(​:$xin) { say $xin }' --xin "foo bar"
Usage​:
  -e '...' [--xin=<Any>]

According to S06 this should be valid and should be equivalent to

$ perl6 -e 'sub MAIN(​:$xin) { say $xin }' --xin="foo bar"
foo bar

A leading comment in the test file expresses some doubt about this syntax and mentions this discussion​: http://irclog.perlgeek.de/perl6/2011-10-17#i_4578353

1 similar comment
@p6rt
Copy link
Author

p6rt commented May 23, 2015

From @usev6

This ticket is about failing tests (fudged 'todo') in S06-other/main-usage.t which are about using command line switches without '='​:

$ perl6 -e 'sub MAIN(​:$xin) { say $xin }' --xin "foo bar"
Usage​:
  -e '...' [--xin=<Any>]

According to S06 this should be valid and should be equivalent to

$ perl6 -e 'sub MAIN(​:$xin) { say $xin }' --xin="foo bar"
foo bar

A leading comment in the test file expresses some doubt about this syntax and mentions this discussion​: http://irclog.perlgeek.de/perl6/2011-10-17#i_4578353

@usev6
Copy link

usev6 commented Feb 19, 2023

This has been resolved with rakudo/rakudo#4209 (see also the discussion for the earlier version rakudo/rakudo#4201).

The tests in roast's S06-other/main-usage.t have been reworked in Raku/roast#716.

I'm closing this issue as resolved.

@usev6 usev6 closed this as completed Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants