Skip to content

Commit

Permalink
fix storing of port for larch_server
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Nov 8, 2024
1 parent 6452da0 commit 1eaaf9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions larch/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,15 @@ def run_larch():
("-w", "--wxgui", "wxgui", False, "run Larch GUI"),
("-m", "--makeicons", "makeicons", False, "create desktop icons"),
("-u", "--update", "update", False, "update larch to the latest version"),
("-r", "--remote", "server_mode", False, "run in remote server mode"),
("-p", "--port", "port", "4966", "port number for remote server"))
("-r", "--remote", "server_mode", False, "run in remote server mode"))


for opt, longopt, dest, default, help in sargs:
parser.add_argument(opt, longopt, dest=dest, action='store_true',
default=default, help=help)

parser.add_argument('-p', '--port', dest='port',
default='4966', help="port number for remote server")
parser.add_argument('scripts', nargs='*',
help='larch or python scripts to run on startup')

Expand Down

0 comments on commit 1eaaf9b

Please sign in to comment.