mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 04:33:53 +00:00
Fixing error in setting args after parsing (broken test fixed)
This commit is contained in:
parent
8635c4d0eb
commit
bf4ad1d717
@ -1365,10 +1365,13 @@ class App {
|
||||
size_t num_left_over = remaining_size();
|
||||
if(num_left_over > 0) {
|
||||
args = remaining(false);
|
||||
std::reverse(std::begin(args), std::end(args));
|
||||
throw ExtrasError(args);
|
||||
}
|
||||
}
|
||||
|
||||
if(parent_ == nullptr) {
|
||||
args = remaining(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// Parse one config param, return false if not found in any subcommand, remove if it is
|
||||
|
Loading…
x
Reference in New Issue
Block a user