File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ def main():
38
38
dir_path = os .path .dirname (os .path .realpath (__file__ ))
39
39
num_args = len (sys .argv )
40
40
if sys .argv [0 ].split ('/' )[- 1 ] == "seleniumbase" or (
41
- sys .argv [0 ].split ('\\ ' )[- 1 ] == "seleniumbase" ):
41
+ sys .argv [0 ].split ('\\ ' )[- 1 ] == "seleniumbase" ) or (
42
+ sys .argv [0 ].split ('/' )[- 1 ] == "sbase" ) or (
43
+ sys .argv [0 ].split ('\\ ' )[- 1 ] == "sbase" ):
42
44
if num_args < 3 :
43
45
invalid_run_command ()
44
46
else :
Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ def main():
54
54
dir_path = os .path .dirname (os .path .realpath (__file__ ))
55
55
num_args = len (sys .argv )
56
56
if sys .argv [0 ].split ('/' )[- 1 ] == "seleniumbase" or (
57
- sys .argv [0 ].split ('\\ ' )[- 1 ] == "seleniumbase" ):
57
+ sys .argv [0 ].split ('\\ ' )[- 1 ] == "seleniumbase" ) or (
58
+ sys .argv [0 ].split ('/' )[- 1 ] == "sbase" ) or (
59
+ sys .argv [0 ].split ('\\ ' )[- 1 ] == "sbase" ):
58
60
if num_args < 3 :
59
61
invalid_run_command ()
60
62
else :
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ def main():
30
30
if num_args < 3 or num_args > 3 :
31
31
raise Exception ('\n \n * INVALID RUN COMMAND! * Usage:\n '
32
32
'"seleniumbase convert %s"\n ' % expected_arg )
33
+ elif sys .argv [0 ].split ('/' )[- 1 ] == "sbase" or (
34
+ sys .argv [0 ].split ('\\ ' )[- 1 ] == "sbase" ):
35
+ if num_args < 3 or num_args > 3 :
36
+ raise Exception ('\n \n * INVALID RUN COMMAND! * Usage:\n '
37
+ '"sbase convert %s"\n ' % expected_arg )
33
38
else :
34
39
if num_args < 2 or num_args > 2 :
35
40
raise Exception ('\n \n * INVALID RUN COMMAND! * Usage:\n '
You can’t perform that action at this time.
0 commit comments