Skip to content

Improve how --list-models , --list-tools and --server options are presented in help text. #146

Open
@sangee2004

Description

@sangee2004

It is confusing to see --list-models , --list-tools and --server as they are listed currently in the --help text when these commands do not operate on a PROGRAM_FILE . Is there a different way to present these options to the user in help ?

gptscript --help
Usage:
  gptscript [flags] PROGRAM_FILE [INPUT...]

Flags:
      --assemble                    Assemble tool to a single artifact, saved to --output ($GPTSCRIPT_ASSEMBLE)
      --cache                       Disable caching ($GPTSCRIPT_CACHE)
      --cache-dir string            Directory to store cache (default: $XDG_CACHE_HOME/gptscript) ($GPTSCRIPT_CACHE_DIR)
      --debug                       Enable debug logging ($GPTSCRIPT_DEBUG)
      --default-model string        Default LLM model to use ($GPTSCRIPT_DEFAULT_MODEL) (default "gpt-4-turbo-preview")
      --dump-state string           Dump the internal execution state to a file ($GPTSCRIPT_DUMP_STATE)
  -h, --help                        help for gptscript
  -f, --input string                Read input from a file ("-" for stdin) ($GPTSCRIPT_INPUT)
      --list-models                 List the models available and exit ($GPTSCRIPT_LIST_MODELS)
      --list-tools                  List built-in tools and exit ($GPTSCRIPT_LIST_TOOLS)
      --listen-address string       Server listen address ($GPTSCRIPT_LISTEN_ADDRESS) (default "127.0.0.1:9090")
      --openai-api-key string       OpenAI API KEY ($OPENAI_API_KEY)
      --openai-api-type string      OpenAI API Type (valid: OPEN_AI, AZURE, AZURE_AD) ($OPENAI_API_TYPE)
      --openai-api-version string   OpenAI API Version (for Azure) ($OPENAI_API_VERSION)
      --openai-base-url string      OpenAI base URL ($OPENAI_BASE_URL)
      --openai-org-id string        OpenAI organization ID ($OPENAI_ORG_ID)
  -o, --output string               Save output to a file, or - for stdout ($GPTSCRIPT_OUTPUT)
  -q, --quiet                       No output logging (set --quiet=false to force on even when there is no TTY) ($GPTSCRIPT_QUIET)
      --server                      Start server ($GPTSCRIPT_SERVER)
      --sub-tool string             Use tool of this name, not the first tool in file ($GPTSCRIPT_SUB_TOOL)
  -v, --version                     version for gptscript

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions