Difference between revisions of "Argparse"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
  
 
  parser.add_argument("your_argument")
 
  parser.add_argument("your_argument")
 +
args = parser.parse_args()
  
 
== Related ==
 
== Related ==
 
* <code>[[optparse]] (deprecated)</code>
 
* <code>[[optparse]] (deprecated)</code>
 +
* <code>[[import sys]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{import}}
 
* {{argparse}}
 
* {{argparse}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 12:17, 27 March 2024

Advertising: