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

Prima eats options in @ARGV #42

Closed
Corion opened this issue Nov 11, 2016 · 4 comments
Closed

Prima eats options in @ARGV #42

Corion opened this issue Nov 11, 2016 · 4 comments

Comments

@Corion
Copy link

Corion commented Nov 11, 2016

This feels weird. The attached test fails as soon as the use Prima; statement is active. It passes when use Prima; is commented out. There seems to be a conflict between Getopt::Long and Prima, as Getopt::Long does not see all contents of @argv if Prima is loaded before it. For example the --help command gets eaten by Prima and it outputs:

   --openmp_threads - sets number of openmp threads
   --debug      - turns on debugging

which is unexpected

Prima-GetOptions.t.txt

@dk
Copy link
Owner

dk commented Nov 12, 2016

yes, this is known and expected. You probably want to say "use Prima::noARGV;" as a first statement

@dk
Copy link
Owner

dk commented Nov 12, 2016

However I agree that this is weird by default, and there should be better ways to interoperate with ARGV by default

@dk
Copy link
Owner

dk commented Nov 22, 2016

does it work for you with noARGV? If yes, I'll close the ticket

@Corion
Copy link
Author

Corion commented Nov 22, 2016

Sorry - yes, it works right as you said!It might need more documentation, but the code works fine ;)

Please close,
-max

Am 22. November 2016 13:33:26 MEZ, schrieb Dmitry Karasik notifications@github.com:

does it work for you with noARGV? If yes, I'll close the ticket

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#42 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

@dk dk closed this as completed Nov 22, 2016
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