Skip to content

Commit

Permalink
Enable git-like did-you-mean feature (#318)
Browse files Browse the repository at this point in the history
Implement did-you mean feature thanks to https://github.com/click-contrib/click-didyoumean
  • Loading branch information
hiiwave authored and jmaupetit committed Oct 1, 2019
1 parent f5141af commit 4a40152
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Improve Arrow 0.15.0 support after changes in `arrow.get()` behavior (#296)
- Watson now suggests correct command if users make small typo (#318)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
arrow!=0.11,!=0.12.0
click
click-didyoumean
requests
3 changes: 2 additions & 1 deletion watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import arrow
import click
from click_didyoumean import DYMGroup

from . import watson as _watson
from .frames import Frame
Expand Down Expand Up @@ -122,7 +123,7 @@ def wrapper(*args, **kwargs):
return wrapper


@click.group()
@click.group(cls=DYMGroup)
@click.version_option(version=_watson.__version__, prog_name='Watson')
@click.pass_context
def cli(ctx):
Expand Down

0 comments on commit 4a40152

Please sign in to comment.