mumoshu / variant2

Turn your bash scripts into a modern, single-executable CLI app today
MIT License
143 stars 11 forks source link

Bug: positional parameters not shown in help #6

Closed osterman closed 4 years ago

osterman commented 4 years ago

what

e.g.

parameter "foo" {
  description = "Foo bar"
 ...
}

example

eriks-mbp:variant-demo erik$ ./mycli terraform init --help
Run terraform init on a project

Usage:
  mycli terraform init [flags]
  mycli terraform init [command]

Available Commands:
  all         Init all projects

Flags:
  -h, --help   help for init

Global Flags:
      --cachedir string   Where to cache modules
      --env string        Environment to operate on

Use "mycli terraform init [command] --help" for more information about a command.

But terraform init has a positional parameter of project defined:

job "terraform init" {
  description = "Run terraform init on a project"
  parameter "project" {
    type = string
    description = "Project to provision"
  }

  variable "moduledir" {
    type = string
    value = try("${opt.cachedir}/${param.project}")
  }
...