fix segfault when no argument
This commit is contained in:
parent
472fd5306c
commit
75972d166b
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ int main(int argc, char* argv[])
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
args=options.process(argc, argv, {.stop_on_argument=true, .output_doubledash=true} );
|
args=options.process(argc, argv, {.stop_on_argument=true, .output_doubledash=true} );
|
||||||
if( args[0] == "--" )
|
if( args.size()>0 && args[0] == "--" )
|
||||||
{
|
{
|
||||||
optstop=true;
|
optstop=true;
|
||||||
args.erase(args.begin());
|
args.erase(args.begin());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue