Commit Graph

6 Commits

Author SHA1 Message Date
Brad King
c4f8005454 Merge topic 'correct_arg_parsing'
79d7bcaf40 cmCommandLineArgument: correctly compute next parse index

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5936
2021-03-29 09:29:40 -04:00
Robert Maynard
79d7bcaf40 cmCommandLineArgument: correctly compute next parse index
Fixes #21966

Correctly compute the next parse index for `ZeroOrOne` when
it is zero, and for OneOrMore.
2021-03-26 09:34:46 -04:00
Robert Maynard
400536c317 cmCommandLineArgument: trim leading empty spaces 2021-03-09 14:35:49 -05:00
Robert Maynard
5ab0b54482 cmCommandLineArgument now supports OneOrMore argument type 2021-01-06 09:11:18 -05:00
Robert Maynard
b34db1db69 cmCommandLineArgument supports ZeroOrOne arguments
This allows us to parse command line arguments such as `-j` || `-j2`
2021-01-06 09:11:18 -05:00
Robert Maynard
0fb78576b0 cmake: Use shared parsing code for all cmake argv parsing 2021-01-06 09:11:14 -05:00