""" Non-double-dashed arguments are defaulting to True, even though they should be False. """ import argparse parser = argparse.ArgumentParser(description="Example of what I believe to be a bug.") parser.add_argument("--verbose", action="store_true", help="double dash options are handled correctly") parser.add_argument("meow", action="store_true") args = parser.parse_args() print(args) if args.meow: print("Meow is default to false, but called anyway.")