Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from adelosa/feature/add-version-option
Browse files Browse the repository at this point in the history
Add --version option
  • Loading branch information
adelosa committed Mar 14, 2016
2 parents 20f350d + 4c533b5 commit 2a15293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mciutil/cli/mideu.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def _get_cli_parser():
description="MasterCard IPM file formatter ({version})".format(
version=_version.get_versions()['version'])
)
parser.add_argument("--version", action="version",
version="%(prog)s ("+_version.get_versions()['version']+")",
help="Get version information")

subparsers = parser.add_subparsers(help="Sub-command help")

Expand Down
3 changes: 3 additions & 0 deletions mciutil/cli/paramconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def _get_cli_parser():
)
parser.add_argument("input", help="MasterCard parameter file name")
parser.add_argument("-o", "--output", help="Converted parameter file name")
parser.add_argument("--version", action="version",
version="%(prog)s ("+_version.get_versions()['version']+")",
help="Get version information")

add_source_format_arg(parser)
add_logging_arg_group(parser)
Expand Down

0 comments on commit 2a15293

Please sign in to comment.