You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: