Grammalecte  Check-in [ce2cbcbd61]

Overview
Comment:[build] useless options
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: ce2cbcbd61f515b8c26a3bd7d8e04c7287da51b8d38555159c53a4e9afd82d56
User & Date: olr on 2023-06-10 12:12:36
Other Links: manifest | tags
Context
2023-06-10
12:13
[graphspell] new ad hoc suggestions check-in: 446b654590 user: olr tags: trunk, graphspell
12:12
[build] useless options check-in: ce2cbcbd61 user: olr tags: trunk, build
12:10
[fr] faux positif et ajustements check-in: e47e52f2c6 user: olr tags: trunk, fr
Changes

Modified lex_build.py from [d4a3c39602] to [c6d9c2afcf].

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    "parse args from CLI"
    xParser = argparse.ArgumentParser()
    xParser.add_argument("src_lexicon", type=str, help="path and file name of the source lexicon")
    xParser.add_argument("lang_code", type=str, help="language code")
    xParser.add_argument("lang_name", type=str, help="language name")
    xParser.add_argument("dic_filename", type=str, help="dictionary file name (without extension)")
    xParser.add_argument("-js", "--json", help="Build dictionary in JSON", action="store_true")
    xParser.add_argument("-s", "--stemming", help="stemming method: S=suffixes, A=affixes, N=no stemming", type=str, choices=["S", "A", "N"], default="S")
    xParser.add_argument("-c", "--compress", help="compression method: 1, 2 (beta), 3, (beta)", type=int, choices=[1, 2, 3], default=1)
    xArgs = xParser.parse_args()
    build(xArgs.src_lexicon, xArgs.lang_code, xArgs.lang_name, xArgs.dic_filename, xArgs.json)


if __name__ == '__main__':
    main()







<
<






24
25
26
27
28
29
30


31
32
33
34
35
36
    "parse args from CLI"
    xParser = argparse.ArgumentParser()
    xParser.add_argument("src_lexicon", type=str, help="path and file name of the source lexicon")
    xParser.add_argument("lang_code", type=str, help="language code")
    xParser.add_argument("lang_name", type=str, help="language name")
    xParser.add_argument("dic_filename", type=str, help="dictionary file name (without extension)")
    xParser.add_argument("-js", "--json", help="Build dictionary in JSON", action="store_true")


    xArgs = xParser.parse_args()
    build(xArgs.src_lexicon, xArgs.lang_code, xArgs.lang_name, xArgs.dic_filename, xArgs.json)


if __name__ == '__main__':
    main()