gleam icon indicating copy to clipboard operation
gleam copied to clipboard

passing command line flags after `gleam run` fails to run

Open TanklesXL opened this issue 2 years ago • 1 comments

As per the failure message:

> gleam run --caps=true
error: Found argument '--caps' which wasn't expected, or isn't valid in this context

    If you tried to supply `--caps` as a value rather than a flag, use `-- --caps`

USAGE:
    gleam run [OPTIONS] [ARGUMENTS]...

whereas gleam run ah --caps=true succeeds

TanklesXL avatar Jan 12 '22 19:01 TanklesXL

Looks like there's a clap bug ticket https://github.com/clap-rs/clap/issues/1538

lpil avatar Jan 13 '22 17:01 lpil

I think we may be able to do this now, the clap issue has been closed

lpil avatar Sep 20 '22 13:09 lpil

Is the gleam build tool using the latest clap version?

TanklesXL avatar Sep 20 '22 14:09 TanklesXL

No idea! Probably not

lpil avatar Sep 22 '22 12:09 lpil