aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
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)