(msg=None)
| 28 | |
| 29 | |
| 30 | def 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 | |
| 58 | def main(): |
no outgoing calls
no test coverage detected
searching dependent graphs…