summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorbionel <ionel.busuioc@gmail.com>2020-06-21 13:37:39 +0300
committerbionel <ionel.busuioc@gmail.com>2020-06-21 13:37:39 +0300
commit8b47ce46f1f9baf80bd09239871593b0028a0a62 (patch)
treee18fe8e4e6f2ac499d593925a13783bab3a2a9ae /src/frontend/cli/sisyphus-cli.py
parent38d5b810cb5e8400919e1d72c7d3806ee1156a23 (diff)
make setjobs selective
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-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()