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

Function invalid_run_command

seleniumbase/console_scripts/sb_mkchart.py:30–55  ·  view source on GitHub ↗
(msg=None)

Source from the content-addressed store, hash-verified

28
29
30def invalid_run_command(msg=None):
31 exp = " ** mkchart **\n\n"
32 exp += " Usage:\n"
33 exp += " seleniumbase mkchart [FILE.py] [LANG]\n"
34 exp += " OR sbase mkchart [FILE.py] [LANG]\n"
35 exp += " Example:\n"
36 exp += " sbase mkchart new_chart.py --en\n"
37 exp += " Language Options:\n"
38 exp += " --en / --English | --zh / --Chinese\n"
39 exp += " --nl / --Dutch | --fr / --French\n"
40 exp += " --it / --Italian | --ja / --Japanese\n"
41 exp += " --ko / --Korean | --pt / --Portuguese\n"
42 exp += " --ru / --Russian | --es / --Spanish\n"
43 exp += " Output:\n"
44 exp += " Creates a new SeleniumBase chart presentation.\n"
45 exp += " If the file already exists, an error is raised.\n"
46 exp += " By default, the slides are written in English,\n"
47 exp += ' and use a "sky" theme with "slide" transition.\n'
48 exp += " The chart can be used as a basic boilerplate.\n"
49 if not msg:
50 raise Exception("INVALID RUN COMMAND!\n\n%s" % exp)
51 elif msg == "help":
52 print("\n%s" % exp)
53 sys.exit()
54 else:
55 raise Exception("INVALID RUN COMMAND!\n\n%s\n%s\n" % (exp, msg))
56
57
58def main():

Callers 2

mainFunction · 0.70
sb_mkchart.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…