parser.add_argument('--upload', action='store_const', const='upload', dest=
    'mode')
args = parser.parse_args()
if not args.mode:
    parser.error('One of --process or --upload must be given')
Python argparse: Make at least one argument required