This commit is contained in:
Gaël
2025-09-08 18:34:12 +02:00
parent 7b1ee4a0ab
commit 6cf99fe2e1
2 changed files with 4 additions and 4 deletions

View File

@@ -589,9 +589,9 @@ async def run_forever_sunday_noon():
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--run-once", action="store_true", help="Run now and exit (no scheduler)")
parser.add_argument("--runonce", action="store_true", help="Run now and exit (no scheduler)")
args = parser.parse_args()
if args.run_once:
if args.runonce:
asyncio.run(run_weekly())
else:
asyncio.run(run_forever_sunday_noon())