git-ecosystem / git-bundle-server

A web server & management CLI to host Git bundles for use with Git's "bundle URIs" feature
Other
43 stars 20 forks source link

Make `route` optional in `git-bundle-server init` #36

Closed vdye closed 1 year ago

vdye commented 1 year ago

This pull request does two main things:

  1. 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)
  2. 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)

Part of #35