-
- help Displays this message.
-
- These commands are only useful for developers:
- csvimport {uri} [dir] Import data from a set of CSVs to the database
- given by the URI.
- csvexport {uri} [dir] Export data from the database given by the URI
- to a set of CSVs.
- Directory defaults to cwd.
-"""
+usage: pokedex {command} [options...]
+Run `pokedex setup` first, or nothing will work!
+
+Commands:
+ help Displays this message.
+ lookup [thing] Look up something in the Pokédex.
+
+System commands:
+ load Load Pokédex data into a database from CSV files.
+ dump Dump Pokédex data from a database into CSV files.
+ setup Loads Pokédex data into the right place and creates a
+ lookup index in the right place. No options or output.
+ This will blow away the default database and index!
+
+Options:
+ -d|--directory By default, load and dump will use the CSV files in the
+ pokedex install directory. Use this option to specify
+ a different directory.
+ -D|--drop-tables With load, drop all tables before loading data.
+ -e|--engine=URI By default, all commands try to use a SQLite database
+ in the pokedex install directory. Use this option to
+ specify an alternate database.
+ -q|--quiet Turn off any unnecessary status output from dump/load.
+""".encode(sys.getdefaultencoding(), 'replace')