From 48addb70594ffb1409bfccb12852922b72476096 Mon Sep 17 00:00:00 2001 From: Jonas Eckert Date: Wed, 23 Mar 2022 08:15:32 +0100 Subject: [PATCH] Update cli help text --- reactive_modules/cli.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/reactive_modules/cli.py b/reactive_modules/cli.py index cae635c..f8de621 100644 --- a/reactive_modules/cli.py +++ b/reactive_modules/cli.py @@ -140,7 +140,7 @@ def create_arg_parser() -> argparse.ArgumentParser: 'code and interpreting it. You need to use the individual sub-command for ' 'the different tasks.') # create the pars for the "a" command - format_parser = subparsers.add_parser('format', help='Formatting one or more files') + format_parser = subparsers.add_parser('format', help='Formatting one or more files.') format_parser.add_argument('input', nargs='+', type=argparse.FileType('r', encoding='UTF-8'), metavar='INPUT', help='A list of files to format. Pass - to read just from standard in. If output is ' 'specified, all content of all input is appended with a line break and then ' @@ -170,15 +170,10 @@ def __call__(self, pars, namespace, values, option_string=None): help='Specify how many characters should be at most in one line.') format_parser.set_defaults(func=format_code) - check_parser = subparsers.add_parser('check', help='Formatting one or more files') + check_parser = subparsers.add_parser('check', + help='Check one or more files for syntactic and some semantic errors.') check_parser.add_argument('input', nargs='+', type=argparse.FileType('r', encoding='UTF-8'), metavar='INPUT', - help='A list of files to format. Pass - to read just from standard in. If output is ' - 'specified, all content of all input is appended with a line break and then ' - 'written to output. In verbose mode, the source file name is prepended as a ' - 'comment. If output is not specified, the files are formatted in place (standard ' - 'in is written to standard out respectively). If the input file contains ' - 'syntactical errors, errors are printed to standard error and the content of this ' - 'file are not written.') + help='A list of files to check. Pass - to read just from standard in.') check_parser.add_argument('-f', '--force', action='store_true', help='Disable warning for analysing something that is not a .rm file.') check_parser.set_defaults(func=check)