Skip to content

Commit

Permalink
version number to argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
pseewald committed Jan 1, 2017
1 parent f10e72f commit d882a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fprettify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ def run(argv=sys.argv): # pragma: no cover
default=False, help=argparse.SUPPRESS)
parser.add_argument("filename", type=str, nargs='*',
help="File1 File2 ... to be formatted. If no files are given, stdin (-) is used.", default=['-'])
parser.add_argument('--version', action='version', version='%(prog)s 0.3.1')

args = parser.parse_args(argv[1:])

Expand Down

0 comments on commit d882a7d

Please sign in to comment.