Updated the scripts using default_option_parser to account for the whitespace changes.
parser = CLI.default_option_parser()
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
(options, args) = parser.parse_args()
parser = CLI.default_option_parser(usage)
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
parser.add_option('-o',
'--outfile',
parser = CLI.default_option_parser(usage)
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
parser.add_option('-s',
'--srid',
parser = CLI.default_option_parser()
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
parser.add_option('-s',
'--state',
"""
Convert an OGC Well-Known Text string to a Keyhole Markup Language
(KML) file.
-"""
-"""
We take a Well-Known Text[1] string as input, and optionally a
filename to which to write the output. While we shouldn't technically
*need* access to a PostGIS database to perform this conversion, it
parser = CLI.default_option_parser()
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
parser.add_option('-o',
'--outfile',
"""
Find the total population contained within a geometric object.
-"""
-"""
Our input is an OGC Well-Known Text[1] string. This string is used as
part of a database query that finds the population contained within
(i.e. 'underneath') the geometric object corresponding to the WKT
parser = CLI.default_option_parser(usage)
# Use this module's docstring as the description.
-parser.description = __doc__.strip()
+parser.description = __doc__
parser.add_option('-s',
def default_option_parser(usage=None):
+ # Use a VerbatimFormatter instead of the default
+ # IndentedHelpFormatter.
+ fmtr = VerbatimHelpFormatter()
+
# -h (help) Conflicts with -h HOSTNAME
- parser = OptionParser(usage=usage, add_help_option = False)
+ parser = OptionParser(usage = usage,
+ add_help_option = False,
+ formatter = fmtr)
parser.add_option('-h',
'--host',