@@ -139,6 +139,10 @@ def argHandler_dontopenuionstartup():
139
139
global dontopenuionstartup
140
140
dontopenuionstartup = True
141
141
142
+ def argHandler_urlBase (path ):
143
+ arg_config ["URL_BASE" ] = path
144
+ config .URL_BASE = path
145
+
142
146
def argHandler_help ():
143
147
global gdb_executable
144
148
@@ -154,6 +158,7 @@ def argHandler_help():
154
158
print (" --host=IP, -H IP:\t \t \t \t Specifies current host address that you can access via for HTTP and WS servers." )
155
159
print (" --listen=IP, -l IP:\t \t \t \t Specifies listen address for HTTP and WS servers." )
156
160
print (" --port=PORT, -p PORT:\t \t \t \t Specifies HTTP port. (0 for random port.)" )
161
+ print (" --url-base=PATH, -u PATH:\t \t \t Specifies URL base path. (Default: /)" )
157
162
print (" --readonly, -r:\t \t \t \t Makes code editor readonly. (Notice: This option is not related to security.)" )
158
163
print (" --workdir, -w:\t \t \t \t Specifies working directory." )
159
164
print (" --plugin-dir, -P:\t \t \t \t Specifies plugins directory." )
@@ -217,6 +222,7 @@ def quit_tmux_gdb():
217
222
["--plugins-dir" , "-P" , argHandler_pluginsDir , True ],
218
223
["--help" , "-h" , argHandler_help , False ],
219
224
["--dontopenuionstartup" , "-D" , argHandler_dontopenuionstartup , False ],
225
+ ["--url-base" , "-u" , argHandler_urlBase , True ],
220
226
["--version" , "-v" , argHandler_version , False ]
221
227
]
222
228
0 commit comments