summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 74cdb2f..53db6de 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -4,6 +4,7 @@ import sisyphus
import typer
from typing import List
from enum import Enum
+import sys
app = typer.Typer()
mirrorSetup = typer.Typer()
@@ -194,6 +195,7 @@ def mirrorset(index: int):
sisyphus.mirror.setActive(index)
if __name__ == "__main__":
- sisyphus.check.update()
- sisyphus.setjobs.start.__wrapped__() # undecorate
+ if not '--help' in sys.argv:
+ sisyphus.check.update()
+ sisyphus.setjobs.start.__wrapped__() # undecorate
app()