mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	check-provision: Replace optparse with argparse.
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import optparse
 | 
			
		||||
import argparse
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
tools_dir = os.path.dirname(os.path.abspath(__file__))
 | 
			
		||||
@@ -14,11 +14,11 @@ from tools.lib.test_script import (
 | 
			
		||||
 | 
			
		||||
def run():
 | 
			
		||||
    # type: () -> None
 | 
			
		||||
    parser = optparse.OptionParser()
 | 
			
		||||
    parser.add_option('--force', default=False,
 | 
			
		||||
                      action="store_true",
 | 
			
		||||
                      help='Run tests despite possible problems.')
 | 
			
		||||
    (options, args) = parser.parse_args()
 | 
			
		||||
    parser = argparse.ArgumentParser()
 | 
			
		||||
    parser.add_argument('--force', default=False,
 | 
			
		||||
                        action="store_true",
 | 
			
		||||
                        help='Run tests despite possible problems.')
 | 
			
		||||
    options = parser.parse_args()
 | 
			
		||||
 | 
			
		||||
    if not options.force:
 | 
			
		||||
        ok, msg = get_provisioning_status()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user