fubarhouse / dvm

Drush version manager (DVM)
http://fubarhouse.github.io/dvm/
4 stars 2 forks source link

dvm list default behaviour #97

Open marblegravy opened 6 years ago

marblegravy commented 6 years ago

dvm list on it's own throws an error in 2.3

| => dvm list
FATA[0000] expected 1 argument, 0 found

Suggest it's default behaviour triggers help text to describe the available flags. Perhaps something like:


| => dvm list -h
List available or installed Drush versions.

Usage:
  dvm list [commands] [flags]

Commands:
  available    Lists all versions of drush that can be installed
  installed     Lists all versions of drush that are already installed

Flags:
  -h, --help   help for list

Global Flags:
      --config string   config file (default is $HOME/config.toml)
fubarhouse commented 6 years ago

I'd love to do this - I just need to figure out how to invoke it from a subcommand...

It would help me out in a number of other places.

Edit: figured it out :)

Commit it on the way.

Any templating changes will need to be templated or otherwise handled.

fubarhouse commented 6 years ago

So this achieves the desired result, the program knows about the flag, rather than it being arbitrary.

Please leave some feedback when you find some time.

fubarhouse commented 6 years ago

Please advise of any further change within the next week - I'm looking at releasing v2.4.0.

fubarhouse commented 6 years ago