Skip to content

Commit

Permalink
add cli version arg (openai#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanpinxi authored and davedittrich committed Nov 14, 2023
1 parent a3a513c commit ea6bcd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openai/_openai_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys

import openai
from openai import version
from openai.cli import api_register, display_error, tools_register, wandb_register

logger = logging.getLogger()
Expand All @@ -15,6 +16,12 @@

def main():
parser = argparse.ArgumentParser(description=None)
parser.add_argument(
"-V",
"--version",
action="version",
version="%(prog)s " + version.VERSION,
)
parser.add_argument(
"-v",
"--verbose",
Expand Down

0 comments on commit ea6bcd8

Please sign in to comment.