Skip to content

Commit

Permalink
feat: Add version argument to command line (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimisola authored Oct 30, 2023
1 parent 4688f73 commit bbea7b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/openapi_to_asciidoc/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@

import argparse
import json
from importlib.metadata import version

from openapi_to_asciidoc.objects import OpenApi, OpenApiSchema


def get_arguments():
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter)

parser.add_argument(
"-V",
"--version",
action="version",
version=version("maven-artifact"),
)
parser.add_argument(
"-j",
"--json",
Expand Down

0 comments on commit bbea7b5

Please sign in to comment.