Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use integer port arguments in nbdifftool #55

Merged
merged 1 commit into from
Jul 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions nbdime/webapp/nbdifftool.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def build_arg_parser():
"""
description = 'Difftool for Nbdime.'
parser = ArgumentParser(description=description)
parser.add_argument('-p', '--port', default="8888",
parser.add_argument('-p', '--port', default=8899,
help="Specify the port you want the server "
"to run on. Default is 8888.")
"to run on. Default is 8899.")
parser.add_argument("local", help="The local file of the diff comparison.")
parser.add_argument("remote", help="The remote file of the diff comparison.")
return parser
Expand All @@ -50,7 +50,7 @@ def browse(port):

def main():
arguments = build_arg_parser().parse_args()
port = int(arguments.port) if arguments.port else 8888
port = arguments.port
cwd = os.path.abspath(os.path.curdir)
local = arguments.local
remote = arguments.remote
Expand Down