Revision 4258
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/csv2db | ||
---|---|---|
38 | 38 |
errors_table_only = opts.env_flag('errors_table_only', False, env_names) |
39 | 39 |
verbosity = util.cast(float, opts.get_env_var('verbosity', 3, env_names)) |
40 | 40 |
|
41 |
if not (input_cmd != [] and table != None and 'engine' in db_config): |
|
41 |
if not ((errors_table_only or input_cmd != []) and table != None |
|
42 |
and 'engine' in db_config): |
|
42 | 43 |
usage_err() |
43 | 44 |
|
44 | 45 |
# Connect to DB |
Also available in: Unified diff
csv2db: Made input_cmd optional when errors_table_only is on, because the CSV header is not needed to create the errors table