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

Has it broken recently? (May 2020) #30

Open
Oooklout opened this issue May 27, 2020 · 0 comments
Open

Has it broken recently? (May 2020) #30

Oooklout opened this issue May 27, 2020 · 0 comments

Comments

@Oooklout
Copy link

Win10, Microsoft Visual Studio Professional 2019 Version 16.5.2.

AnyOption seems unable to parse its own demo options - it understands only one at a time
and not even that with the -help option
'<MyTest.exe -s 100>'
works OK and prints
'size = 1000'
Then,
'MyTest.exe -name Anthony'
works OK, but:
'MyTest.exe -name Anthony -h'
prints:
'Unknown command argument option : n

Unknown command argument option : a
Unknown command argument option : m
Unknown command argument option : e
Unknown command argument option : name
Unknown command argument option : Anthony
Unknown command argument option : h'
and I don't see anywhere I can program my own options.
'opt->setOption("title");'
looks like the place to set new options but as above, it doesn't work as expected.
'MyTest.exe -name Anthony -title Prince' gives:
Unknown command argument option : n

Unknown command argument option : a
Unknown command argument option : m
Unknown command argument option : e
Unknown command argument option : name
Unknown command argument option : Anthony
Unknown command argument option : t
Unknown command argument option : i
Unknown command argument option : t
Unknown command argument option : l
Unknown command argument option : e
Unknown command argument option : title
Unknown command argument option : Prince

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

1 participant