--- /dev/null
+from optparse import OptionParser
+
+import Configuration.Defaults
+
+
+def default_option_parser(usage):
+ # -h (help) Conflicts with -h HOSTNAME
+ parser = OptionParser(usage=usage, add_help_option = False)
+
+ parser.add_option('-h',
+ '--host',
+ help='The hostname/address where the database is located.',
+ default=Configuration.Defaults.DATABASE_HOST)
+
+ parser.add_option('-d',
+ '--database',
+ help='The database in which the population data are stored.',
+ default=Configuration.Defaults.DATABASE_NAME)
+
+ parser.add_option('-U',
+ '--username',
+ help='The username who has access to the database.',
+ default=Configuration.Defaults.DATABASE_USERNAME)
+
+ return parser