This is just to show how to use argparse to create a git like command line structure. It does not have any actual functionality right now.
Output of --help
is shown below in this file. The actual code with argparse
will be in the other file of this gist.
% python git_clone_cmd.py clone --help
usage: git_clone_cmd.py clone [-h] [--template <template_directory>] [--local]
<repository> [<directory>]
positional arguments: