diff --git a/pytchat/cli/__init__.py b/pytchat/cli/__init__.py index 0bd99b3..6c95e19 100644 --- a/pytchat/cli/__init__.py +++ b/pytchat/cli/__init__.py @@ -22,9 +22,10 @@ def main(): # Arguments parser = argparse.ArgumentParser(description=f'pytchat v{__version__}') parser.add_argument('-v', f'--{Arguments.Name.VIDEO}', type=str, - help='Video IDs separated by commas without space') + help='Video IDs separated by commas without space.\n' + 'If ID starts with a hyphen (-), enclose the ID in square brackets.') parser.add_argument('-o', f'--{Arguments.Name.OUTPUT}', type=str, - help='Output directory (end with "/")', default='./') + help='Output directory (end with "/"). default="./"', default='./') parser.add_argument(f'--{Arguments.Name.VERSION}', action='store_true', help='Settings version') Arguments(parser.parse_args().__dict__) diff --git a/tests/test_calculator_parse.py b/tests/test_calculator_parse.py index f845182..be0c1bf 100644 --- a/tests/test_calculator_parse.py +++ b/tests/test_calculator_parse.py @@ -36,7 +36,7 @@ def test_process_0(): chat_component = { 'video_id':'', 'timeout':10, - 'chatdata':load_chatdata(r"tests\testdata\calculator\superchat_0.json") + 'chatdata':load_chatdata(r"tests/testdata/calculator/superchat_0.json") } assert SuperchatCalculator().process([chat_component])=={'¥': 6800.0, '€': 2.0} @@ -47,7 +47,7 @@ def test_process_1(): chat_component = { 'video_id':'', 'timeout':10, - 'chatdata':load_chatdata(r"tests\testdata\calculator\text_only.json") + 'chatdata':load_chatdata(r"tests/testdata/calculator/text_only.json") } assert SuperchatCalculator().process([chat_component])=={} @@ -59,7 +59,7 @@ def test_process_2(): chat_component = { 'video_id':'', 'timeout':10, - 'chatdata':load_chatdata(r"tests\testdata\calculator\replay_end.json") + 'chatdata':load_chatdata(r"tests/testdata/calculator/replay_end.json") } assert False SuperchatCalculator().process([chat_component])