@@ -79,7 +79,8 @@ def show_basic_usage():
79
79
sc += " mkdir [DIRECTORY] [OPTIONS]\n "
80
80
sc += " mkfile [FILE.py] [OPTIONS]\n "
81
81
sc += " mkrec / codegen [FILE.py] [OPTIONS]\n "
82
- sc += " recorder (Open Recorder Desktop App)\n "
82
+ sc += " recorder (Open Recorder Desktop App.)\n "
83
+ sc += " record (App if 0 args. Else mkrec.)\n "
83
84
sc += " mkpres [FILE.py] [LANG]\n "
84
85
sc += " mkchart [FILE.py] [LANG]\n "
85
86
sc += " print [FILE] [OPTIONS]\n "
@@ -774,10 +775,28 @@ def main():
774
775
else :
775
776
show_basic_usage ()
776
777
show_install_usage ()
777
- elif command == "recorder" :
778
+ elif (
779
+ command == "recorder"
780
+ or (command == "record" and len (command_args ) == 0 )
781
+ ):
778
782
from seleniumbase .console_scripts import sb_recorder
779
783
780
784
sb_recorder .main ()
785
+ elif (
786
+ command == "mkrec"
787
+ or command == "codegen"
788
+ or (command == "record" and len (command_args ) >= 1 )
789
+ ):
790
+ if len (command_args ) >= 1 :
791
+ from seleniumbase .console_scripts import sb_mkrec
792
+
793
+ sb_mkrec .main ()
794
+ else :
795
+ show_basic_usage ()
796
+ if command == "codegen" :
797
+ show_codegen_usage ()
798
+ else :
799
+ show_mkrec_usage ()
781
800
elif command == "mkdir" :
782
801
if len (command_args ) >= 1 :
783
802
from seleniumbase .console_scripts import sb_mkdir
@@ -794,22 +813,6 @@ def main():
794
813
else :
795
814
show_basic_usage ()
796
815
show_mkfile_usage ()
797
- elif command == "mkrec" :
798
- if len (command_args ) >= 1 :
799
- from seleniumbase .console_scripts import sb_mkrec
800
-
801
- sb_mkrec .main ()
802
- else :
803
- show_basic_usage ()
804
- show_mkrec_usage ()
805
- elif command == "codegen" :
806
- if len (command_args ) >= 1 :
807
- from seleniumbase .console_scripts import sb_mkrec
808
-
809
- sb_mkrec .main ()
810
- else :
811
- show_basic_usage ()
812
- show_codegen_usage ()
813
816
elif command == "mkpres" :
814
817
if len (command_args ) >= 1 :
815
818
from seleniumbase .console_scripts import sb_mkpres
0 commit comments