Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #397 from dephell/version
Browse files Browse the repository at this point in the history
--version
  • Loading branch information
orsinium committed Mar 12, 2020
2 parents 3f0ad08 + 5723ba9 commit d33b3b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dephell/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def main(argv: List[str]) -> int:
if len(argv) == 1 and argv[0] in ('--help', 'help', 'commands'):
parser._print_message(parser.format_help())
return ReturnCodes.OK.value
if len(argv) == 1 and argv[0] in ('-v', '--version'):
argv = ['inspect', 'self']

# rewrite argv to get help about command
if len(argv) >= 1 and argv[0] in ('--help', 'help'):
Expand Down

0 comments on commit d33b3b5

Please sign in to comment.