Skip to content

Commit

Permalink
Do not add -h to the help command itself
Browse files Browse the repository at this point in the history
Co-authored-by: david qiu <[email protected]>
  • Loading branch information
krassowski and dlqqq authored Jul 8, 2024
1 parent d4d499d commit 612013b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ def __init__(
add_help=False, description=self.help, formatter_class=MarkdownHelpFormatter
)
# the default help would exit; instead implement a custom help
self.parser.add_argument(
"-h", "--help", action="store_true", help="show this help message"
)
if not self.__class__.id == "help":
self.parser.add_argument(
"-h", "--help", action="store_true", help="show this help message"
)
self.root_dir = os.path.abspath(os.path.expanduser(root_dir))
self.dask_client_future = dask_client_future
self.llm = None
Expand Down

0 comments on commit 612013b

Please sign in to comment.