andromedaprotocol / andromeda.js

Command line interface for interactions with Andromeda contracts.
1 stars 1 forks source link

CLI- suggestion - List every CLI command and subcommand when --help is invoked #87

Closed MyronKoch-dev closed 9 months ago

MyronKoch-dev commented 1 year ago

List every CLI command and subcommand when --help is invoked. Right now, only the top level is displayed

leifasorensen commented 9 months ago

A further review can be performed for help operations, and further information on using help flags can be added to the documentation found at: https://docs.andromedaprotocol.io/andromeda/andromeda-cli/help-and-shortcuts#help-flag

Currently the structure for differences in primary and sub-menu options (that are not commands) are loading base routes on the --help flag. As seen in the screenshot provided. Currently using the flag without double dashes help will trigger the sub command listings related to that command (but are thrown as an error).

command --help & command help

ado help sub commands

command sub command --help

As seen in this screenshot provided adding the --help flag on a command (such as ado create) returns the commands usage structure and valid flags. In this case it is also returning other sub-commands which might apply to the base command (in this case ado)

ado cmd help

leifasorensen commented 9 months ago

This issue should be resolved in PR #99 and will be released in ver 0.3.9