Brad King
30ece11e66
cmCommandLineArgument: Do not treat negative numbers as flags
2024-10-14 10:52:59 -04:00
Kyle Edwards
8d9069e5b6
cmake -E copy: Add support for -t argument
...
Fixes : #23543
2022-11-15 07:47:07 -05:00
Kyle Edwards
0645d08c98
cmCommandLineArgument: Add setToTrue() and setToValue() helpers
2022-04-18 16:22:39 -04:00
Robert Maynard
396e0a840e
cmCommandLineArgument: OneOrMore mode supports =
separator
...
Fixes #22187
2021-05-19 11:37:30 -04:00
Robert Maynard
372bf1bcc4
cmCommandLineArgument: Understands which commands require partial matching
...
Allows us to provide better error messages when commands such as
`--target` are passed invalid input.
2021-05-19 11:07:16 -04:00
Brad King
e2c5209532
Merge topic 'cmake_build_and_install_command_error_when_given_bad_arguments'
...
f78b167a23 cmCommandLineArgument: Provide more information syntax error messages
5aa0dec6b0 cmake: `--build` and `--install` error out when encountering bad flags
928cdb17c5 cmCommandLineArgument: Correctly record parsing failures
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6119
2021-05-14 08:33:29 -04:00
Robert Maynard
f78b167a23
cmCommandLineArgument: Provide more information syntax error messages
2021-05-13 09:33:30 -04:00
Robert Maynard
928cdb17c5
cmCommandLineArgument: Correctly record parsing failures
2021-05-12 09:43:33 -04:00
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