File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ def show_detailed_help():
137137
138138
139139def main ():
140+ command = None
141+ command_args = None
140142 num_args = len (sys .argv )
141143 if num_args == 1 :
142144 show_usage ()
@@ -147,6 +149,7 @@ def main():
147149 elif num_args > 2 :
148150 command = sys .argv [1 ]
149151 command_args = sys .argv [2 :]
152+ command = command .lower ()
150153
151154 if command == "install" :
152155 if len (command_args ) >= 1 :
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ def make_executable(file_path):
5454
5555def main ():
5656 num_args = len (sys .argv )
57- if sys .argv [0 ].split ('/' )[- 1 ] == "seleniumbase" or (
58- sys .argv [0 ].split ('\\ ' )[- 1 ] == "seleniumbase" ):
57+ if sys .argv [0 ].split ('/' )[- 1 ]. lower () == "seleniumbase" or (
58+ sys .argv [0 ].split ('\\ ' )[- 1 ]. lower () == "seleniumbase" ):
5959 if num_args < 3 or num_args > 3 :
6060 invalid_run_command ()
6161 else :
6262 invalid_run_command ()
63- name = sys .argv [num_args - 1 ]
63+ name = sys .argv [num_args - 1 ]. lower ()
6464
6565 file_name = None
6666 download_url = None
You can’t perform that action at this time.
0 commit comments