From 0acaabf7b91b53ea536aa69a9a2c76e7305a0389 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 20 Jun 2016 03:46:03 +0300 Subject: mutual_friends.py: interface update --- bin/mutual_friends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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)') -- cgit v1.2.3