Skip to content
Snippets Groups Projects
Commit 1ed87e3f authored by Jonas Haag's avatar Jonas Haag
Browse files

Disallow --htdigest without --smarthttp to avoid misuse

parent c9990f2d
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,10 @@ def make_parser(): ...@@ -52,6 +52,10 @@ def make_parser():
def main(): def main():
args = make_parser().parse_args() args = make_parser().parse_args()
if args.htdigest and not args.smarthttp:
print >> sys.stderr, "--htdigest option has no effect without --smarthttp enabled"
return 1
if not args.repos: if not args.repos:
print >> sys.stderr, "WARNING: No repositories supplied -- syntax is 'klaus dir1 dir2...'." print >> sys.stderr, "WARNING: No repositories supplied -- syntax is 'klaus dir1 dir2...'."
...@@ -85,4 +89,4 @@ def _open_browser(args): ...@@ -85,4 +89,4 @@ def _open_browser(args):
if __name__ == '__main__': if __name__ == '__main__':
main() exit(main())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment