annotate templates/script.py @ 59:93f2b2c7f838

add a comment
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 Jan 2011 16:38:40 -0800
parents a82aa8b2ad93
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
3bf29175907c actually introduce a variable for the script
Jeff Hammel <jhammel@mozilla.com>
parents: 4
diff changeset
1 #!/usr/bin/env python
4
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
46
a82aa8b2ad93 use proper delimeters
Jeff Hammel <jhammel@mozilla.com>
parents: 45
diff changeset
4 {{description}}
4
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 """
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 import sys
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 from optparse import OptionParser
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 def main(args=sys.argv[:]):
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 usage = '%prog [options]'
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 parser = OptionParser(usage=usage, description=__doc__)
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 options, args = parser.parse_args(args)
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 if __name__ == '__main__':
08a50935e941 add a directory for single-file templates
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 main()