MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / invalid_run_command

Function invalid_run_command

seleniumbase/console_scripts/sb_mkdir.py:27–49  ·  view source on GitHub ↗
(msg=None)

Source from the content-addressed store, hash-verified

25
26
27def invalid_run_command(msg=None):
28 exp = " ** mkdir **\n\n"
29 exp += " Usage:\n"
30 exp += " seleniumbase mkdir [DIRECTORY] [OPTIONS]\n"
31 exp += " OR sbase mkdir [DIRECTORY] [OPTIONS]\n"
32 exp += " Example:\n"
33 exp += " sbase mkdir ui_tests\n"
34 exp += " Options:\n"
35 exp += " -b / --basic (Only config files. No tests added.)\n"
36 exp += " --gha (Include GitHub Actions YML with defaults.)\n"
37 exp += " Output:\n"
38 exp += " Creates a new folder for running SBase scripts.\n"
39 exp += " The new folder contains default config files,\n"
40 exp += " sample tests for helping new users get started,\n"
41 exp += " and Python boilerplates for setting up customized\n"
42 exp += " test frameworks.\n"
43 if not msg:
44 raise Exception("INVALID RUN COMMAND!\n\n%s" % exp)
45 elif msg == "help":
46 print("\n%s" % exp)
47 sys.exit()
48 else:
49 raise Exception("INVALID RUN COMMAND!\n\n%s\n%s\n" % (exp, msg))
50
51
52def main():

Callers 2

mainFunction · 0.70
sb_mkdir.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…