neonctl
neonctl copied to clipboard
neonctl Provides wrong help messages when using extra/unknown command
Steps to reproduce
One of those commands:
neon branches create test --help
neon auth test --help
Expected result
Error message OR previous command help OR general help
Actual result
General help for neon with the wrong command.
For instance neon auth test --help will generate the following result where the commands are starting with neon auth instead of neon.
neon <command> [options]
Commands:
neon auth auth
└────────────────> Authenticate [aliases: login]
neon auth me
└────────────────> Show current user
neon auth orgs
└────────────────> Manage organizations [aliases: org]
neon auth projects
└────────────────> Manage projects [aliases: project]
neon auth ip-allow
└────────────────> Manage IP Allow
neon auth vpc
└────────────────> Manage VPC endpoints and project VPC restrictions
neon auth branches
└────────────────> Manage branches [aliases: branch]
neon auth databases
└────────────────> Manage databases [aliases: database, db]
neon auth roles
└────────────────> Manage roles [aliases: role]
neon auth operations
└────────────────> Manage operations [aliases: operation]
neon auth connection-string [branch]
└────────────────> Get connection string [aliases: cs]
neon auth set-context
└────────────────> Set the current context
neon auth completion
└────────────────> generate completion script
Global options:
-o, --output
└────────────────> Set output format [string] [choices: "json", "yaml", "table"] [default: "table"]
--config-dir
└────────────────> Path to config directory [string] [default: "/home/vscode/.config/neonctl"]
--api-key
└────────────────> API key [string] [default: ""]
--color
└────────────────> Colorize the output. Example: --no-color, --color false [boolean] [default: true]
-h, --help
└────────────────> Show help [boolean] [default: false]
--analytics
└────────────────> Manage analytics. Example: --no-analytics, --analytics false [boolean] [default: true]
-v, --version
└────────────────> Show version number [boolean]
Options:
--context-file
└────────────────> Context file [string] [default: (current-context-file)]