chiark / gitweb /
make-secnet-sites: Fix argument parsing with options
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 7 Nov 2019 00:01:44 +0000 (00:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 7 Nov 2019 00:05:40 +0000 (00:05 +0000)
commitf5c5fb86331aac7ec034dd5a7c4feaf8cec1bc56
tree56f956f35251020a94143c1841f3219a95577de2
parentf64dd27dcb8735a719c8c550008822fcefad62f9
make-secnet-sites: Fix argument parsing with options

In "make-secnet-sites: Use argparse rather than ad-hoc parser",
we missed a reference to sys.argv.  The effect is that if
make-secnet-sites run in sites file output mode, and provided
with options, the output is written to the wrong place.

The only syntax that worked in 0.4.5 and broke in 0.5.0 is
make-secnet-sites -P.  So here we fix that regression.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites