Skip to content

Commit 37afc3d

Browse files
aliceinwireAlice Ferrazzi
authored andcommitted
Fix arguments and add help messages
1 parent 03f1db8 commit 37afc3d

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

elivepatch_server/elivepatch_server.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,22 @@ def parse_args():
1616
parser = argparse.ArgumentParser()
1717

1818
parser.add_argument('-j', '--jobs', type=int,
19-
default=multiprocessing.cpu_count())
19+
default=multiprocessing.cpu_count(),
20+
help='Specify the number of make jobs')
2021

2122
parser.add_argument('-H', '--host', type=str,
22-
default='0.0.0.0')
23+
default='0.0.0.0',
24+
help='Specify the host')
2325

2426
parser.add_argument('-P', '--port', type=int,
25-
default='5000')
27+
default='5000',
28+
help='Specify the port')
2629

27-
parser.add_argument('-T', '--threaded', type=bool,
28-
default=True)
30+
parser.add_argument('-T', '--threaded', action='store_true',
31+
help='Enable threading')
2932

30-
parser.add_argument('-d', '--debug', type=bool,
31-
default=False)
33+
parser.add_argument('-d', '--debug', action='store_true',
34+
help='Enable debugging')
3235

3336
return parser.parse_args()
3437

0 commit comments

Comments
 (0)