Skip to content

Commit 5b8c284

Browse files
authored
Merge pull request kivy#1118 from inclement/version_arg
Added --version argument
2 parents c60e02d + 81205c8 commit 5b8c284

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99
from __future__ import print_function
10+
from pythonforandroid import __version__
1011

1112
def check_python_dependencies():
1213
# Check if the Python requirements are installed. This appears
@@ -464,6 +465,8 @@ def add_parser(subparsers, *args, **kwargs):
464465
help='Print some debug information about current built components',
465466
parents=[generic_parser])
466467

468+
parser.add_argument('-v', '--version', action='version', version=__version__)
469+
467470
args, unknown = parser.parse_known_args(sys.argv[1:])
468471
args.unknown_args = unknown
469472

0 commit comments

Comments
 (0)