Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 9bc65d3

Browse files
committed
Ports the --version argument to argparse.
1 parent e314601 commit 9bc65d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spark_ec2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def parse_args():
179179
parser.add_argument('cluster_name')
180180

181181
# Optional arguments
182+
parser.add_argument(
183+
"--version", action="version", version="%(prog)s {v}".format(v=SPARK_EC2_VERSION))
182184
parser.add_argument(
183185
"-s", "--slaves", type=int, default=1,
184186
help="Number of slaves to launch (default: %(default)s)")

0 commit comments

Comments
 (0)