Use argparse to parse command arguments

This commit also allows users to specify all the config values through
the command line.

Fix #154.
This commit is contained in:
Guillaume Ayoub
2016-10-12 14:30:18 +02:00
parent 6d76cfa5aa
commit c459d32a19
6 changed files with 176 additions and 124 deletions

View File

@ -389,7 +389,7 @@ class Application:
status = client.UNAUTHORIZED
realm = self.configuration.get("server", "realm")
headers = dict(headers)
headers.update ({
headers.update({
"WWW-Authenticate":
"Basic realm=\"%s\"" % realm})