Grammalecte  Check-in [57bb3560a3]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[cli] show Python version
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | cli
Files: files | file ages | folders
SHA3-256:57bb3560a3c647260fd134c2084f788fea9e4f0da1addfcf7a886155ffe4f753
User & Date: olr 2019-08-20 13:00:03
Context
2019-08-20
16:31
[build] add tests to text processor actions to prevent weird bugs check-in: 7542272427 user: olr tags: build, trunk
13:00
[cli] show Python version check-in: 57bb3560a3 user: olr tags: cli, trunk
10:34
[core][fr] update readme check-in: 921b4fbc70 user: olr tags: core, fr, trunk
Changes

Changes to grammalecte-cli.py.

   103    103           return oJSON
   104    104       print("# Error: file <" + spf + "> not found.")
   105    105       return None
   106    106   
   107    107   
   108    108   def main ():
   109    109       "launch the CLI (command line interface)"
          110  +
          111  +    print("Python v" + sys.version)
          112  +
   110    113       xParser = argparse.ArgumentParser()
   111    114       xParser.add_argument("-f", "--file", help="parse file (UTF-8 required!) [on Windows, -f is similar to -ff]", type=str)
   112    115       xParser.add_argument("-ff", "--file_to_file", help="parse file (UTF-8 required!) and create a result file (*.res.txt)", type=str)
   113    116       xParser.add_argument("-owe", "--only_when_errors", help="display results only when there are errors", action="store_true")
   114    117       xParser.add_argument("-j", "--json", help="generate list of errors in JSON (only with option --file or --file_to_file)", action="store_true")
   115    118       xParser.add_argument("-cl", "--concat_lines", help="concatenate lines not separated by an empty paragraph (only with option --file or --file_to_file)", action="store_true")
   116    119       xParser.add_argument("-tf", "--textformatter", help="auto-format text according to typographical rules (not with option --concat_lines)", action="store_true")