Make sandbox a switch
[releng/global-jjb.git] / jenkins-admin / create_jenkins_global_env_vars.py
index 927a665..bfab297 100755 (executable)
@@ -23,8 +23,11 @@ def parse_arguments():
         description='Create jcasc yaml from path to jenkins config dir.')
     parser.add_argument('--path', type=dir_path,
                         help="Path to jenkins-admin directory")
-    parser.add_argument('--sandbox', type=bool, default=False,
-                        help="Set to True for sandbox yaml generation")
+    parser.add_argument(
+        "-s", "--sandbox",
+        help="Is configuration being created for a sandbox",
+        dest="sandbox", action = "store_true"
+    )
     parser.add_argument(
         "--outputvars",
         type=argparse.FileType("w"),