aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-06 01:02:28 -0500
committerBobby <[email protected]>2022-11-06 01:02:28 -0500
commit7f5029943a061fc754c261d56a94d66dff36b7da (patch)
tree1fb95cccba0249df9be5f5e1777d3b335ac27355 /setup.py
parent106892b2952f95258fc777cf1afc23fd145232e5 (diff)
downloadtexty-7f5029943a061fc754c261d56a94d66dff36b7da.tar.xz
texty-7f5029943a061fc754c261d56a94d66dff36b7da.zip
feat: support for debug run;moved preferences to class
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index a4db127..f38fba6 100644
--- a/setup.py
+++ b/setup.py
@@ -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)