Merge pull request #59 from dosht/master
--unix-target option breaks argument sanity check
This commit is contained in:
commit
8ee3b4e221
@ -345,7 +345,7 @@ def websockify_init():
|
||||
(opts, args) = parser.parse_args()
|
||||
|
||||
# Sanity checks
|
||||
if len(args) < 2 and not opts.target_cfg:
|
||||
if len(args) < 2 and not (opts.target_cfg or opts.unix_target):
|
||||
parser.error("Too few arguments")
|
||||
if sys.argv.count('--'):
|
||||
opts.wrap_cmd = args[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user