dune icon indicating copy to clipboard operation
dune copied to clipboard

Dune executable should accept `--help` and `--version` arguments

Open Aloso opened this issue 4 years ago • 2 comments

Typing dune --version should print version information. dune --help should print help information or open the man page.

Also, many shells accept a -c, --command argument to execute commands and print the result, e.g.

~ $ bash -c "echo hello world"
hello world
~ $

Aloso avatar Sep 27 '21 21:09 Aloso

@adam-mcdaniel I'd like to use clap 3.0.0-beta.5 for this.

Aloso avatar Oct 22 '21 13:10 Aloso

Yes, I agree. I love clap a lot: I think it would be great for this. I can add it.

adam-mcdaniel avatar Oct 22 '21 15:10 adam-mcdaniel