Convert string argument to integer when passed on command line