Having read the documentation on argparse I am struggling to see the difference between the last two lines of code:
parser = argparse.ArgumentParser()
parser.add_argument('--option')
parser.add_argument('option', nargs='?')
Both specify optional parameters that can be passed into the parser, but why use one over the other?