terryyin / translate-python

Online translation as a Python module & command line tool. No key, no authentication needed.
MIT License
729 stars 153 forks source link

Change ArgParse to Click #32

Closed rhenter closed 6 years ago

rhenter commented 6 years ago

PR with a refactor changing native ArgParser lib to Click lib and fix the config file uses. Following click documentation:

http://click.pocoo.org/5/

Options: --version Show the version and exit. -f, --from TEXT Sets the language of the text being translated. The default value is 'autodetect' -t, --to TEXT Sets the language you want to translate. --help Show this message and exit.

 - Command using version option:
```shell
$ translate-cli  --version
translate, version 3.3.0

@terryyin I also create a sample from config file to be used in the project documentation

terryyin commented 6 years ago

shall I do a new release now?

rhenter commented 6 years ago

@terryyin yes please !