It is not surprising that it once stopped to work. If you search non-hackish solution, use action='store_const', const=[] for options. For positional arguments, remove add_argument() and use set_defaults to set the default value in a namespace. You can also consider using nargs='......