From ce41af1468f4bf012b4f5f32b816b96608861bab Mon Sep 17 00:00:00 2001 From: Chaigidel Date: Mon, 24 Feb 2020 18:52:39 +0800 Subject: [PATCH] readable help --- README.md | 2 ++ danmaku2ass.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5191f9..b968a55 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ optional arguments: Duration of still comment display [default: 5] -fl FILTER, --filter FILTER Regular expression to filter comments + -flf FILTER_FILE, --filter-file FILTER_FILE + Regular expressions from json file (contain a regex list) to filter comments -p HEIGHT, --protect HEIGHT Reserve blank on the bottom of the stage -r, --reduce Reduce the amount of comments if stage is full diff --git a/danmaku2ass.py b/danmaku2ass.py index 8a0b399..e8f4ce0 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -809,7 +809,7 @@ def main(): parser.add_argument('-dm', '--duration-marquee', metavar=_('SECONDS'), help=_('Duration of scrolling comment display [default: %s]') % 5, type=float, default=5.0) parser.add_argument('-ds', '--duration-still', metavar=_('SECONDS'), help=_('Duration of still comment display [default: %s]') % 5, type=float, default=5.0) parser.add_argument('-fl', '--filter', help=_('Regular expression to filter comments')) - parser.add_argument('-flf', '--filter-file', help=_('Regular expressions from json file to filter comments')) + parser.add_argument('-flf', '--filter-file', help=_('Regular expressions from json file (contain a regex list) to filter comments')) parser.add_argument('-p', '--protect', metavar=_('HEIGHT'), help=_('Reserve blank on the bottom of the stage'), type=int, default=0) parser.add_argument('-r', '--reduce', action='store_true', help=_('Reduce the amount of comments if stage is full')) parser.add_argument('file', metavar=_('FILE'), nargs='+', help=_('Comment file to be processed'))