Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
Add --version option to print the installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesquembre committed Feb 3, 2016
1 parent 2ad3c10 commit db7c54b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -5,6 +5,8 @@ Changelog for autopilot
0.2.3 (unreleased)
------------------

- Add `--version` option, which prints out the current version number

- Add release type option to `release` command. Possible values are patch,
minor and major. The next version numbers are generated based on this option

Expand Down
2 changes: 2 additions & 0 deletions src/autopilot/main.py
Expand Up @@ -15,8 +15,10 @@
from .ui import new_project_ui, release_ui
from . import utils
from . import git
from . import __version__

@click.group()
@click.version_option(__version__, prog_name='autopilot')
def cli():
pass

Expand Down

0 comments on commit db7c54b

Please sign in to comment.