mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Added usage to unit-test OptionParser
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									d2522e31b9
								
							
						
					
					
						commit
						e029c9f7f8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -206,7 +206,7 @@ class TestRunner:
 | 
			
		|||
if __name__ == "__main__":
 | 
			
		||||
    from optparse import OptionParser
 | 
			
		||||
    usage = "%prog [options] [model model model ...]"
 | 
			
		||||
    parser = OptionParser()
 | 
			
		||||
    parser = OptionParser(usage=usage)
 | 
			
		||||
    parser.add_option('-v', help='How verbose should the output be? Choices are 0, 1 and 2, where 2 is most verbose. Default is 0.',
 | 
			
		||||
        type='choice', choices=['0', '1', '2'])
 | 
			
		||||
    parser.add_option('--settings',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue