How to Set a Default Subparser using Argparse Module with Python 2.7
问题 I'm using Python 2.7 and I'm trying to accomplish a shell like behavior using argparse. My issue, in general, that I cannot seem to find a way, in Python 2.7, to use argparse's subparsers as optional. It's kind of hard to explain my issue so I'll describe what I require from my program. The program has 2 modes of work: Starting the program with a given command (each command has it's own additional arguments) and additional arguments will run a specific task. Starting the program without a