mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	#5719: add short usage example to optparse docstring.
This commit is contained in:
		
							parent
							
								
									457fefc3f8
								
							
						
					
					
						commit
						aa48157d3d
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		|  | @ -6,6 +6,19 @@ | |||
| 
 | ||||
| For support, use the optik-users@lists.sourceforge.net mailing list | ||||
| (http://lists.sourceforge.net/lists/listinfo/optik-users). | ||||
| 
 | ||||
| Simple usage example: | ||||
| 
 | ||||
|    from optparse import OptionParser | ||||
| 
 | ||||
|    parser = OptionParser() | ||||
|    parser.add_option("-f", "--file", dest="filename", | ||||
|                      help="write report to FILE", metavar="FILE") | ||||
|    parser.add_option("-q", "--quiet", | ||||
|                      action="store_false", dest="verbose", default=True, | ||||
|                      help="don't print status messages to stdout") | ||||
| 
 | ||||
|    (options, args) = parser.parse_args() | ||||
| """ | ||||
| 
 | ||||
| __version__ = "1.5.3" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl