Skip to content

Has it broken recently? (May 2020)  #30

Description

@Oooklout

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions