]> git.parisson.com Git - teleforma.git/commitdiff
add args
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2026 09:47:37 +0000 (10:47 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2026 09:47:49 +0000 (10:47 +0100)
teleforma/management/commands/teleforma-cleanup-private-documents.py

index 8dd8f2ce5d0d87f0962b95374b51a813ad89bd8b..314d25c1c083e618d8290521b2cb4e6ce4957058 100644 (file)
@@ -5,6 +5,10 @@ from datetime import datetime, timedelta
 
 class Command(BaseCommand):
     help = "Delete all private documents older than a number of days"
+    args = "days"
+
+    def add_arguments(self, parser):
+        parser.add_argument('args', nargs='*')
 
     def handle(self, *args, **options):
         days = args[0]