diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-24 14:42:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-24 14:42:17 +0300 |
commit | e78225930f541e94cd050afe6895ccec0703316d (patch) | |
tree | 15c08fca072e079974bebb78304703297355742d /bin/online_duration.py | |
parent | README update (diff) | |
download | vk-scripts-e78225930f541e94cd050afe6895ccec0703316d.tar.gz vk-scripts-e78225930f541e94cd050afe6895ccec0703316d.zip |
code style
Diffstat (limited to '')
-rw-r--r-- | bin/online_duration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/online_duration.py b/bin/online_duration.py index 5ddb34a..abf8b29 100644 --- a/bin/online_duration.py +++ b/bin/online_duration.py @@ -378,16 +378,16 @@ def _parse_args(args=sys.argv): help='output path (standard output by default)') parser.add_argument('--grouping', type=_parse_grouping, default=Grouping.USER, - choices=tuple(grouping for grouping in Grouping), + choices=Grouping, help='set grouping') parser.add_argument('--input-format', dest='db_fmt', type=_parse_database_format, default=DatabaseFormat.CSV, - choices=tuple(fmt for fmt in DatabaseFormat), + choices=DatabaseFormat, help='specify database format') parser.add_argument('--output-format', dest='fmt', type=_parse_output_format, default=OutputFormat.CSV, - choices=tuple(fmt for fmt in OutputFormat), + choices=OutputFormat, help='specify output format') parser.add_argument('--from', dest='date_from', type=_parse_date_range_limit, default=None, |