Skip to content

Commit

Permalink
cast port argument as int #19
Browse files Browse the repository at this point in the history
  • Loading branch information
cs01 committed Oct 4, 2022
1 parent 45436e9 commit ec8d143
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 0.5.0.1

- Do not fail on unicode decode errors
- Cast port argument as an integer

## 0.5.0.0

* Update dependencies xtermjs and socketio
* Turn off flask's logging
* Update setup.py to install from pinned dependencies in requirements.tx
- Update dependencies xtermjs and socketio
- Turn off flask's logging
- Update setup.py to install from pinned dependencies in requirements.tx
4 changes: 3 additions & 1 deletion pyxtermjs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def main():
),
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument("-p", "--port", default=5000, help="port to run server on")
parser.add_argument(
"-p", "--port", default=5000, help="port to run server on", type=int
)
parser.add_argument(
"--host",
default="127.0.0.1",
Expand Down

0 comments on commit ec8d143

Please sign in to comment.