diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-20 03:46:03 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-20 03:46:03 +0300 |
commit | 0acaabf7b91b53ea536aa69a9a2c76e7305a0389 (patch) | |
tree | 925af7d337efd038205e3e6e71bb4b1af2037f58 | |
parent | ignore "multiple imports" Pylint warnings (diff) | |
download | vk-scripts-0acaabf7b91b53ea536aa69a9a2c76e7305a0389.tar.gz vk-scripts-0acaabf7b91b53ea536aa69a9a2c76e7305a0389.zip |
mutual_friends.py: interface update
-rw-r--r-- | bin/mutual_friends.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mutual_friends.py b/bin/mutual_friends.py index d33b1e2..e58315d 100644 --- a/bin/mutual_friends.py +++ b/bin/mutual_friends.py @@ -81,11 +81,11 @@ def _parse_args(args=sys.argv): parser.add_argument('uids', metavar='UID', nargs='+', help='user IDs or "screen names"') - parser.add_argument('--output-format', dest='fmt', metavar='FORMAT', + parser.add_argument('--output-format', dest='fmt', type=_parse_output_format, default=OutputFormat.CSV, choices=tuple(fmt for fmt in OutputFormat), help='specify output format') - parser.add_argument('--output', dest='fd', metavar='PATH', + parser.add_argument('-o', '--output', dest='fd', metavar='PATH', type=argparse.FileType('w', encoding='utf-8'), default=sys.stdout, help='set output file path (standard output by default)') |