projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6a49139
)
Tiny fix for CLI help.
author
Eevee
<git@veekun.com>
Sat, 24 Apr 2010 21:16:16 +0000
(14:16 -0700)
committer
Eevee
<git@veekun.com>
Sat, 24 Apr 2010 21:52:23 +0000
(14:52 -0700)
pokedex/__init__.py
patch
|
blob
|
history
diff --git
a/pokedex/__init__.py
b/pokedex/__init__.py
index
249eafb
..
df3958b
100644
(file)
--- a/
pokedex/__init__.py
+++ b/
pokedex/__init__.py
@@
-30,7
+30,7
@@
def main():
def get_parser(verbose=True):
"""Returns an OptionParser prepopulated with the global options.
def get_parser(verbose=True):
"""Returns an OptionParser prepopulated with the global options.
-
+
`verbose` is whether or not the options should be verbose by default.
"""
parser = OptionParser()
`verbose` is whether or not the options should be verbose by default.
"""
parser = OptionParser()
@@
-247,16
+247,16
@@
Global options:
the pokedex install directory. Use this option (or a
POKEDEX_INDEX_DIR environment variable) to specify an
alternate loction.
the pokedex install directory. Use this option (or a
POKEDEX_INDEX_DIR environment variable) to specify an
alternate loction.
+ -q|--quiet Don't print system output. This is the default for
+ non-system commands and setup.
+ -v|--verbose Print system output. This is the default for system
+ commands, except setup.
System options:
System options:
- -d|--directory
By default, load and dump will use the CSV files in the
+ -d|--directory
=DIR
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.
pokedex install directory. Use this option to specify
a different directory.
-D|--drop-tables With load, drop all tables before loading data.
- -q|--quiet Don't print system output. This is the default for
- non-system commands and setup.
- -v|--verbose Print system output. This is the default for system
- commands, except setup.
Additionally, load and dump accept a list of table names (possibly with
wildcards) and/or csv fileames as an argument list.
Additionally, load and dump accept a list of table names (possibly with
wildcards) and/or csv fileames as an argument list.