From 33f9141410975347eb57ee63aabb028f7944487c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Wed, 9 Nov 2022 15:14:21 +0900 Subject: Disable argument abbreviation --- src/fead.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fead.py b/src/fead.py index ab23bd0..21f559d 100755 --- a/src/fead.py +++ b/src/fead.py @@ -16,7 +16,7 @@ # along with this program. If not, see . __doc__ = 'Advert generator from web feeds' -__version__ = '0.1.0' +__version__ = '0.1.1' from argparse import ArgumentParser, FileType, HelpFormatter from asyncio import gather, open_connection, run @@ -205,7 +205,8 @@ def main(): parser = ArgumentParser(prog='fead', usage='%(prog)s [OPTION]...', description='Generate adverts from web feeds.', epilog='Any use of -f before -F is ignored.', - formatter_class=GNUHelpFormatter) + formatter_class=GNUHelpFormatter, + allow_abbrev=False) parser.add_argument('-v', '--version', action='version', version=f'%(prog)s {__version__}') parser.add_argument('-F', '--feeds', metavar='PATH', -- cgit 1.4.1