From: Daira Hopwood Date: Mon, 19 Oct 2015 17:24:33 +0000 (+0100) Subject: Fix check for initial '-' in argv_to_abspath. X-Git-Url: https://git.rkrishnan.org/nxhtml.html?a=commitdiff_plain;h=69ae17e1a7868c03ea50ac09b3ae2fae1dd457e9;p=tahoe-lafs%2Ftahoe-lafs.git Fix check for initial '-' in argv_to_abspath. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/util/encodingutil.py b/src/allmydata/util/encodingutil.py index 4eff033a..efd1e218 100644 --- a/src/allmydata/util/encodingutil.py +++ b/src/allmydata/util/encodingutil.py @@ -95,8 +95,6 @@ def argv_to_unicode(s): except UnicodeDecodeError: raise usage.UsageError("Argument %s cannot be decoded as %s." % (quote_output(s), io_encoding)) - if local_dir.startswith('-'): - raise usage.UsageError("Argument %s cannot start with a -." % (quote_output(s),)) def argv_to_abspath(s, **kwargs): """