more help

This commit is contained in:
Paul Gauthier 2023-07-10 07:23:17 -07:00
parent a18b5dcb83
commit 39912fdc09

View file

@ -296,7 +296,9 @@ def main(args=None, input=None, output=None):
if not git_root and args.git:
if io.confirm_ask("No git repo found, create one to track GPT's changes (recommended)?"):
repo = git.Repo.init(os.getcwd())
global_git_config = git.GitConfigParser([str(Path.home() / ".gitconfig")], read_only=True)
global_git_config = git.GitConfigParser(
[str(Path.home() / ".gitconfig")], read_only=True
)
with repo.config_writer() as git_config:
if not global_git_config.has_option("user", "name"):
git_config.set_value("user", "name", "Your Name")
@ -361,7 +363,7 @@ def main(args=None, input=None, output=None):
coder.apply_updates(content)
return
io.tool_output("Use /help to see in-chat commands.")
io.tool_output("Use /help to see in-chat commands, run with --help to see cmd line args")
if args.message:
io.tool_output()
coder.run(with_message=args.message)