signalwire / swsh

The SignalWire Command Line application
3 stars 0 forks source link

Help command #3

Open danieleds opened 1 year ago

danieleds commented 1 year ago

Great work!

Could we add a detailed help when the script is invoked with --help?

In these cases, usually that would ignore any env vars (it should work even if the credentials are not set) and return detailed information about the available commands.

shane-signalwire commented 1 year ago

This was implemented originally, but the check for ENV vars was happening before in logic. I pushed a fix last week that resolved that, and now the --help and --version should work as intended.

The help menu does need some additional documentation added, so I'm leaving this open for now while I'm working on filling that out.

(swsh) ➜  Documents swsh --help
SWiSH Help Menu:
================
SignalWire interactive SHell
Cross platform command line utility and shell for administering a Space or Spaces in Signalwire

-h | --help       view this help menu
-v | --version    SWiSH version