Skip to content

Credentials - "-v" option presented for gptscript credentials is confusing. #241

Closed
@sangee2004

Description

@sangee2004

gptscript version - v0.0.0-dev-f4284f43-dirty

Steps to reproduce the problem:

  1. "-v" option presented for gptscript credentials is confusing.
 gptscript credentials -v 
credential version v0.0.0-dev-f4284f43-dirty

Expected Behavior:
"-v" option should not be presented as an available flag for gptscript credentials in help.
This is the current help text.

gptscript credentials --help
List stored credentials

Usage:
  gptscript credential [flags]
  gptscript credential [command]

Aliases:
  credential, cred, creds, credentials

Available Commands:
  delete      Delete a stored credential

Flags:
      --all-contexts   List credentials for all contexts ($GPTSCRIPT_CREDENTIAL_ALL_CONTEXTS)
  -h, --help           help for credential
  -v, --version        version for credential

Global Flags:
      --cache-dir string            Directory to store cache (default: $XDG_CACHE_HOME/gptscript) ($GPTSCRIPT_CACHE_DIR)
  -C, --chdir string                Change current working directory ($GPTSCRIPT_CHDIR)
      --color                       Use color in output (default true) ($GPTSCRIPT_COLOR)
      --config string               Path to GPTScript config file ($GPTSCRIPT_CONFIG)
      --confirm                     Prompt before running potentially dangerous commands ($GPTSCRIPT_CONFIRM)
      --credential-context string   Context name in which to store credentials ($GPTSCRIPT_CREDENTIAL_CONTEXT) (default "default")
      --debug                       Enable debug logging ($GPTSCRIPT_DEBUG)
      --default-model string        Default LLM model to use ($GPTSCRIPT_DEFAULT_MODEL) (default "gpt-4-turbo-preview")
      --disable-cache               Disable caching of LLM API responses ($GPTSCRIPT_DISABLE_CACHE)
      --dump-state string           Dump the internal execution state to a file ($GPTSCRIPT_DUMP_STATE)
  -f, --input string                Read input from a file ("-" for stdin) ($GPTSCRIPT_INPUT)
      --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)

Use "gptscript credential [command] --help" for more information about a command.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions