• Home
  • Raw
  • Download

Lines Matching refs:argparse

9 This tutorial is intended to be a gentle introduction to :mod:`argparse`, the
17 Note also that :mod:`argparse` is based on :mod:`optparse`,
74 import argparse
75 parser = argparse.ArgumentParser()
100 * The second one starts to display the usefulness of the :mod:`argparse`
114 import argparse
115 parser = argparse.ArgumentParser()
149 * The variable is some form of 'magic' that :mod:`argparse` performs for free
159 import argparse
160 parser = argparse.ArgumentParser()
180 import argparse
181 parser = argparse.ArgumentParser()
196 That didn't go so well. That's because :mod:`argparse` treats the options we
198 :mod:`argparse` to treat that input as an integer::
200 import argparse
201 parser = argparse.ArgumentParser()
227 import argparse
228 parser = argparse.ArgumentParser()
272 import argparse
273 parser = argparse.ArgumentParser()
318 import argparse
319 parser = argparse.ArgumentParser()
347 import argparse
348 parser = argparse.ArgumentParser()
381 import argparse
382 parser = argparse.ArgumentParser()
415 import argparse
416 parser = argparse.ArgumentParser()
455 import argparse
456 parser = argparse.ArgumentParser()
521 import argparse
522 parser = argparse.ArgumentParser()
560 import argparse
561 parser = argparse.ArgumentParser()
591 The :mod:`argparse` module is very powerful,
601 import argparse
602 parser = argparse.ArgumentParser()
640 import argparse
641 parser = argparse.ArgumentParser()
670 :class:`argparse.ArgumentParser` instance. Let's introduce a third one,
677 import argparse
679 parser = argparse.ArgumentParser()
720 import argparse
722 parser = argparse.ArgumentParser(description="calculate X to the power of Y")
762 The :mod:`argparse` module offers a lot more than shown here.