Get_arg_value(“+lanes=”, lanes)

What will be the output of the following code?

string lanes= -1 ;
get_arg_value(“+lanes=”, lanes)

If i am not passing “+lanes” switch from commandline.

I am getting the value “0” if I am not passing the string value from command line, what changes I can do to get a value of “-1”.

Regards
Neeraj Dahiya

In reply to Neeraj Dahiy:


string lanes= -1 ;
if (!get_arg_value(“+lanes=”, lanes)) lanes = -1;