Skip to content

Commit

Permalink
Modify README and source code (argparser session)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinzbq committed Jun 24, 2017
1 parent b6770d9 commit 68b60aa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,42 @@ Features
* Limiting to a specific property (n., v., adj., adv.) is possible.

* Powered by:

- `thesaurus.com <http://www.thesaurus.com/>`_
- crayons

* Inspired by `howdoi <https://github.com/gleitz/howdoi>`_


Usage
-----

::
usage: synonym [-h] [-p property] [The Word of Interest]

positional arguments:
The Word of Interest

optional arguments:
-h, --help show this help message and exit
-p, --property The Property of Interest


Install
-------

::
pip install synonym


Author
------

* `Shanyun Gao <http://soultomount.press/>`_


Credits
---------

Expand Down
Binary file modified docs/img/synonym_3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion synonym/synonym.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def command_line_runner():
args = vars(parser.parse_args())

if not args['query']:
parser.print_help
parser.print_help()
return

if sys.version < '3':
Expand Down

0 comments on commit 68b60aa

Please sign in to comment.