Differences From Artifact [54a739402e]:
- File grammalecte-cli.py — part of check-in [7e80aa3aa5] at 2019-05-26 08:17:00 on branch trunk — [cli] command update (user: olr, size: 14493) [annotate] [blame] [check-ins using]
To Artifact [6a3b09f861]:
- File grammalecte-cli.py — part of check-in [8eafd34189] at 2019-08-21 15:54:42 on branch trunk — [cli] don’t print when option JSON, [fr] ajustements (user: olr, size: 14532) [annotate] [blame] [check-ins using] [more...]
| ︙ | |||
134 135 136 137 138 139 140 141 142 143 144 145 146 147 | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | + |
oTextFormatter = oGrammarChecker.getTextFormatter()
if xArgs.personal_dict:
oJSON = loadDictionary(xArgs.personal_dict)
if oJSON:
oSpellChecker.setPersonalDictionary(oJSON)
if not xArgs.json:
echo("Python v" + sys.version)
echo("Grammalecte v{}".format(oGrammarChecker.gce.version))
# list options or rules
if xArgs.list_options or xArgs.list_rules:
if xArgs.list_options:
oGrammarChecker.gce.displayOptions("fr")
if xArgs.list_rules:
|
| ︙ |