/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/generate_docs.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-18 21:42:57 UTC
  • mto: This revision was merged to the branch mainline in revision 6859.
  • Revision ID: jelmer@jelmer.uk-20180218214257-jpevutp1wa30tz3v
Update TODO to reference Breezy, not Bazaar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python3
 
1
#!/usr/bin/python
2
2
 
3
3
# Copyright 2005 Canonical Ltd.
4
4
#
25
25
    bash_completion  bash completion script
26
26
    ...
27
27
 
28
 
Examples:
 
28
Examples: 
29
29
 
30
30
    python generated-docs.py man
31
31
    python generated-docs.py bash_completion
89
89
        if outfilename == "-":
90
90
            outfile = sys.stdout
91
91
        else:
92
 
            outfile = open(outfilename, "w")
 
92
            outfile = open(outfilename,"w")
93
93
        if options.show_filename and (outfilename != "-"):
94
94
            sys.stdout.write(outfilename)
95
95
            sys.stdout.write('\n')
99
99
def print_extended_help(option, opt, value, parser):
100
100
    """ Program help examples
101
101
 
102
 
    Prints out the examples stored in the docstring.
 
102
    Prints out the examples stored in the docstring. 
103
103
 
104
104
    """
105
 
    sys.stdout.write(__doc__ % {"prog": sys.argv[0]})
 
105
    sys.stdout.write(__doc__ % {"prog":sys.argv[0]})
106
106
    sys.stdout.write('\n')
107
107
    sys.exit(0)
108
108