allow to specify terms for camunda.py
authorDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Tue, 11 Dec 2018 15:10:09 +0000 (16:10 +0100)
committerDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Tue, 11 Dec 2018 15:10:09 +0000 (16:10 +0100)
camunda-overlay/camunda.py

index 514b508cc90086517e714de865919315065fec92..8b462f3156bb1ce0b3bada2889aa8aef98f8c55f 100755 (executable)
@@ -121,6 +121,7 @@ if __name__ == "__main__":
     parser.add_argument('--no-deploy', dest='deploy', default=True, action='store_false', help="Do not run the deployment step")
     parser.add_argument('--no-cleanup', dest='cleanup', default=True, action='store_false', help="Initial deploy does not need cleanup")
     parser.add_argument('--autoclick', dest='autoclick', type=int, default=0, help="How many steps to autoclick")
+    parser.add_argument('--term', dest='terms', type=str, nargs='*', default=["aic", "TU Wien"], help="How many steps to autoclick")
     args = parser.parse_args()
 
     if args.deploy:
@@ -131,7 +132,7 @@ if __name__ == "__main__":
 
     if args.autoclick >= 1:
         # start clicking
-        submit_terms(["voting", "phonegate", "35c3"])
+        submit_terms(args.terms)
 
     if args.autoclick >= 2:
         download_pdf()