Skip to content

Commit

Permalink
Add command to echo the application's version
Browse files Browse the repository at this point in the history
Fixes #71.
  • Loading branch information
Toreno96 committed Dec 16, 2023
1 parent c267a1e commit db1d2bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Initial release after the hackathon

Optionally:
- [x] Add command to echo db version and path
- [ ] Add `otp --version` option to echo the application's version (if not here,
- [x] Add `otp --version` option to echo the application's version (if not here,
then a must in one of later versions)

## 0.3.0
Expand Down
1 change: 1 addition & 0 deletions onetimepass/otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def validation_error_to_str(error: pydantic.ValidationError) -> str:


@click.group(context_settings={"help_option_names": ["-h", "--help"]})
@click.version_option()
@click.option("color", "-c/-C", "--color/--no-color", default=True, show_default=True)
@click.option("quiet", "-q", "--quiet", is_flag=True)
@click.option(
Expand Down

0 comments on commit db1d2bd

Please sign in to comment.