swagger-http-server: fix port param

it needs to be an int, not a list
pull/977/head
Richard van der Hoff 8 years ago
parent 0a6886e73c
commit 934dd4754c

@ -36,7 +36,7 @@ if __name__ == '__main__':
scripts_dir = os.path.dirname(os.path.abspath(__file__))
parser = argparse.ArgumentParser()
parser.add_argument(
'--port', '-p', nargs=1,
'--port', '-p',
type=int, default=8000,
help='TCP port to listen on (default: %(default)s)',
)

Loading…
Cancel
Save