File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -635,8 +635,11 @@ be positional::
635635   usage: PROG [-h] [-f FOO] bar 
636636   PROG: error: the following arguments are required: bar 
637637
638- You do not need to specify the dest _ and metavar _ parameters.  The
639- dest _ parameter defaults to the argument name with underscores ``_ ``
638+ By default, argparse automatically handles the internal naming and
639+ display names of arguments, simplifying the process without requiring
640+ additional configuration.
641+ As such, you do not need to specify the dest _ and metavar _ parameters.
642+ The dest _ parameter defaults to the argument name with underscores ``_ ``
640643replacing hyphens ``- `` . The metavar _ parameter defaults to the
641644upper-cased name. For example::
642645
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments