small change in variable name

metadata
Chris Truncer 2015-12-03 13:08:09 -07:00
parent 6264179e7c
commit bd4f7c9af1
6 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ def cli_parser():
"--server", default=None, metavar='[http]',
help="Create a server for the specified protocol.")
servers.add_argument(
"--port", default=None, metavar='[80]',
"--server-port", default=None, metavar='[80]',
help="Specify a non-standard port for the specified protocol.")
servers.add_argument("--list-servers", default=False, action='store_true',
help="Lists all supported server protocols.")

View File

@ -20,7 +20,7 @@ class Server:
self.password = cli_object.password
self.data_directory = ""
if cli_object.port:
self.port = int(cli_object.port)
self.port = int(cli_object.server_port)
else:
self.port = 21

View File

@ -17,7 +17,7 @@ class Server:
def __init__(self, cli_object):
self.protocol = "http"
if cli_object.port:
self.port = int(cli_object.port)
self.port = int(cli_object.server_port)
else:
self.port = 80

View File

@ -19,7 +19,7 @@ class Server:
def __init__(self, cli_object):
self.protocol = "https"
if cli_object.port:
self.port = int(cli_object.port)
self.port = int(cli_object.server_port)
else:
self.port = 443

View File

@ -26,7 +26,7 @@ class Server:
self.password = cli_object.password
self.sftp_directory = helpers.ea_path() + '/data'
if cli_object.port:
self.port = int(cli_object.port)
self.port = int(cli_object.server_port)
else:
self.port = 22
self.rsa_key = """

View File

@ -19,7 +19,7 @@ class Server:
self.protocol = "smtp"
if cli_object.port:
self.port = int(cli_object.port)
self.port = int(cli_object.server_port)
else:
self.port = 25