Skip to content

Commit ec8d143

Browse files
committed
cast port argument as int #19
1 parent 45436e9 commit ec8d143

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
## 0.5.0.1
2+
3+
- Do not fail on unicode decode errors
4+
- Cast port argument as an integer
5+
16
## 0.5.0.0
27

3-
* Update dependencies xtermjs and socketio
4-
* Turn off flask's logging
5-
* Update setup.py to install from pinned dependencies in requirements.tx
8+
- Update dependencies xtermjs and socketio
9+
- Turn off flask's logging
10+
- Update setup.py to install from pinned dependencies in requirements.tx

pyxtermjs/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ def main():
108108
),
109109
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
110110
)
111-
parser.add_argument("-p", "--port", default=5000, help="port to run server on")
111+
parser.add_argument(
112+
"-p", "--port", default=5000, help="port to run server on", type=int
113+
)
112114
parser.add_argument(
113115
"--host",
114116
default="127.0.0.1",

0 commit comments

Comments
 (0)