Skip to content

Commit

Permalink
add version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
inisis committed Aug 17, 2024
1 parent a276c71 commit 2afac54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxslim/argparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def _add_arguments(self):
# Add positional arguments separately for ModelArguments
self.parser.add_argument("input_model", help="input onnx model")
self.parser.add_argument("output_model", nargs="?", default=None, help="output onnx model")
self.parser.add_argument("-v", "--version", action="version", version=onnxslim.__version__)

def parse_args_into_dataclasses(self):
args = self.parser.parse_args()
Expand Down

0 comments on commit 2afac54

Please sign in to comment.