Skip to content

Commit

Permalink
Add command line argument for gyp --version
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Aug 26, 2022
1 parent 1f421c9 commit 7a05ae6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pylib/gyp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,18 @@ def gyp_main(args):
metavar="TARGET",
help="include only TARGET and its deep dependencies",
)
parser.add_argument(
"-V",
"--version",
dest="version",
action="store_true",
help="Show the version and exit.",
)

options, build_files_arg = parser.parse_args(args)
if options.version:
print("v0.13.0")
return 0
build_files = build_files_arg

# Set up the configuration directory (defaults to ~/.gyp)
Expand Down

0 comments on commit 7a05ae6

Please sign in to comment.