Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arg_completions function #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyblue9
Copy link
Contributor

@cyblue9 cyblue9 commented Aug 9, 2018

Fixed that arg is displayed even if the subcommand is wrong.

before:
"hoge" is wrong subcommand. but, arg suggestion("10 limit: int (opt) limits the posts displayed") is displayed.

haxor> hn hoge
               10     limit: int (opt) limits the posts displayed

after:
"hoge" is wrong subcommand. so, suggestion is not displayed.

haxor> hn hoge

Please confirm!

@codecov-io
Copy link

Codecov Report

Merging #150 into master will decrease coverage by 0.05%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   93.53%   93.47%   -0.06%     
==========================================
  Files          31       31              
  Lines        1469     1471       +2     
==========================================
+ Hits         1374     1375       +1     
- Misses         95       96       +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants