Updated open command to use argparse