~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/script_commands.py

  • Committer: Aaron Bentley
  • Date: 2011-08-05 14:31:22 UTC
  • mto: This revision was merged to the branch mainline in revision 13619.
  • Revision ID: aaron@canonical.com-20110805143122-xmmzy49s5medrp4z
Update docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
def get_function_parser(function):
25
25
    """Generate an OptionParser for a function.
26
26
 
27
 
    Defaults come from the parameter defaults.
28
 
    For every permitted to provide as an option, the type must be specified,
29
 
    using the types decorator.
 
27
    Defaults come from the parameter defaults.  Types are inferred from the
 
28
    default, or may be specified using the types decorator.
30
29
    Help may be specified using the helps decorator.
31
30
    """
32
31
    parser = OptionParser()