update ztd option process calls

This commit is contained in:
zawz 2021-04-30 13:24:43 +02:00
parent a02edd6c2c
commit 58b95c45e7
2 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ bool debashify_echo(pipeline* pl)
std::vector<std::string> postargs;
try
{
postargs=opts.process(args, true, true);
postargs=opts.process(args, {.ignore_numbers=true, .stop_on_argument=true} );
}
catch(ztd::option_error& e)
{

View file

@ -67,7 +67,7 @@ std::vector<std::pair<std::string, std::string>> do_include_raw(condlist* cmd, s
std::vector<std::string> rargs;
try
{
rargs = opts.process(cmd->first_cmd()->args->strargs(1), false, true, false);
rargs = opts.process(cmd->first_cmd()->args->strargs(1), {.stop_on_argument=true});
}
catch(ztd::option_error& e)
{
@ -113,7 +113,7 @@ std::pair<std::string, std::string> do_resolve_raw(condlist* cmd, std::string co
std::vector<std::string> rargs;
try
{
rargs = opts.process(cmd->first_cmd()->args->strargs(1), false, true, false);
rargs = opts.process(cmd->first_cmd()->args->strargs(1), {.stop_on_argument=true} );
}
catch(ztd::option_error& e)
{