Add --year
arg for importer subcommands
use is of course optional, but seemed to make more sense to have a shared command line arg for it
This commit is contained in:
parent
1719351495
commit
26a9d1c7ed
|
@ -126,13 +126,16 @@ class ImportSubcommand(Subcommand):
|
|||
"Any field not listed here, would be included (or not) depending "
|
||||
"on the --fields parameter and/or default importer behavior.")
|
||||
|
||||
# start/end date
|
||||
# date ranges
|
||||
parser.add_argument('--start-date', type=date_argument, metavar='DATE',
|
||||
help="Optional (inclusive) starting point for date range, by which host "
|
||||
"data should be filtered. Only used by certain importers.")
|
||||
parser.add_argument('--end-date', type=date_argument, metavar='DATE',
|
||||
help="Optional (inclusive) ending point for date range, by which host "
|
||||
"data should be filtered. Only used by certain importers.")
|
||||
parser.add_argument('--year', type=int,
|
||||
help="Optional year, by which data should be filtered. Only used "
|
||||
"by certain importers.")
|
||||
|
||||
# allow create?
|
||||
parser.add_argument('--create', action='store_true', default=True,
|
||||
|
|
Loading…
Reference in a new issue