neonctl icon indicating copy to clipboard operation
neonctl copied to clipboard

neonctl shouldn't print Global Options when it prints help

Open jamesbroadhead opened this issue 5 months ago • 0 comments

Steps to reproduce

neonctl project -- I type this to learn how to make a full command

Expected result

Commands:
neonctl project list
└────────────────>  List projects
neonctl project create
└────────────────>  Create a project
neonctl project update <id>
└────────────────>  Update a project
neonctl project delete <id>
└────────────────>  Delete a project
neonctl project get <id>
└────────────────>  Get a project

Actual result

neonctl project list
└────────────────>  List projects
neonctl project create
└────────────────>  Create a project
neonctl project update <id>
└────────────────>  Update a project
neonctl project delete <id>
└────────────────>  Delete a project
neonctl project get <id>
└────────────────>  Get a project

Global options:
-o, --output
└────────────────>  Set output format [string] [choices: "json", "yaml", "table"] [default: "table"]
--config-dir
└────────────────>  Path to config directory [string] [default: "/Users/jbo/.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)]```


Result: I see a bunch of options that are in the way of the info that I want 

jamesbroadhead avatar Sep 18 '24 15:09 jamesbroadhead