+import Configuration.Defaults
+import ExitCodes
+import GPS
+import StringUtils
+import SummaryFile1
+
+
+"""
+Parse the command line options. There's some magic involved here;
+otherwise, optparse woule like nothing more than to interpret GPS
+coordinates such as '-78.000000' as options.
+"""
+for idx, value in enumerate(sys.argv):
+ # Please oh please don't rename this script to something which
+ # validates as a negative float.
+ if (StringUtils.is_negative_float(value)):
+ sys.argv.insert(idx, '--')
+ # We have to break here, otherwise the negative argument
+ # will get shifted down the list, and we'll hit it again
+ # in the next iteration of enumerate(). And then it'll
+ # get shifted down the list...
+ break
+
+usage = '%prog [options] <longitude> <latitude>'
+
+# -h (help) Conflicts with -h HOSTNAME
+parser = OptionParser(usage=usage, add_help_option = False)
+
+# Use this module's docstring as the description.
+parser.description = __doc__