diff options
| author | Bobby <[email protected]> | 2022-11-06 01:02:28 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-06 01:02:28 -0500 |
| commit | 7f5029943a061fc754c261d56a94d66dff36b7da (patch) | |
| tree | 1fb95cccba0249df9be5f5e1777d3b335ac27355 /setup.py | |
| parent | 106892b2952f95258fc777cf1afc23fd145232e5 (diff) | |
| download | texty-7f5029943a061fc754c261d56a94d66dff36b7da.tar.xz texty-7f5029943a061fc754c261d56a94d66dff36b7da.zip | |
feat: support for debug run;moved preferences to class
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -154,9 +154,13 @@ cli.add_command(configure) @click.command(help="Run the project.") -def run(): - logger.info("Running project...") - os.system("python3 src/texty.py") [email protected]("--debug", is_flag=True, help="Run in debug mode.") +def run(debug): + if debug: + os.system("python3 src/texty.py --debug") + else: + logger.info("Running the project...") + os.system("python3 src/texty.py") cli.add_command(run) |
