From d628770d738620608b4bddbfeae26e63cf1b54ab Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Tue, 26 Jun 2012 02:40:41 +0200 Subject: [PATCH] Startup parameter fixups --- servefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servefile b/servefile index bcac290..105f763 100755 --- a/servefile +++ b/servefile @@ -994,10 +994,14 @@ def main(): print("Error: Maximum upload size can only be specified when in upload mode.") sys.exit(1) + if args.upload and args.list_dir: + print("Error: Upload and dirlisting can't be enabled together.") + sys.exit(1) + if args.max_upload_size: sizeRe = re.match("^(\d+(?:[,.]\d+)?)(?:([bkmgtpe])(?:(?