Extend the existing positional args in argparse with a distinction between "required" and "optional". If a positional arg is required but not specified, return a usage error; if a positional arg is optional, do not assign it a value. (commits 1-3)
Make route an optional positional arg in git-bundle-server init; if it is unspecified/empty, try to derive it from the given URL. (commit 4)
This pull request does two main things:
argparse
with a distinction between "required" and "optional". If a positional arg is required but not specified, return a usage error; if a positional arg is optional, do not assign it a value. (commits 1-3)route
an optional positional arg ingit-bundle-server init
; if it is unspecified/empty, try to derive it from the given URL. (commit 4)Part of #35