Skip to content

Instantly share code, notes, and snippets.

@bonclay7
Created May 6, 2015 14:52
Show Gist options
  • Select an option

  • Save bonclay7/a4536872081fa3625bc7 to your computer and use it in GitHub Desktop.

Select an option

Save bonclay7/a4536872081fa3625bc7 to your computer and use it in GitHub Desktop.
parser.add_argument("test_mode", help="Tempest test mode", nargs='?', default="smoke")
args = parser.parse_args()
if not args.test_name == "tempest":
if not args.test_mode == "smoke":
parser.error("test_mode is only used with tempest")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment