laze icon indicating copy to clipboard operation
laze copied to clipboard

feat: print help when no subcommand is supplied

Open bergzand opened this issue 3 months ago • 3 comments

This prints the common help output from clap when no ~~argument~~ subcommand is supplied. This does remove the single print statement showing the project root, relpath and project file.

Is there an actual use case for running laze without any subcommand?

bergzand avatar Sep 18 '25 18:09 bergzand

🐰 Bencher Report

Branchpr/arg_required_else_help
Testbedgithub-actions
Click to view all benchmark results
Benchmarkperf:task-clockBenchmark Result
msec x 1e3
(Result Δ%)
Upper Boundary
msec x 1e3
(Limit %)
laze -C RIOT build --global --generate-only📈 view plot
🚷 view threshold
8.93 x 1e3
(-3.70%)Baseline: 9.27 x 1e3
9.77 x 1e3
(91.39%)
🐰 View full continuous benchmarking report in Bencher

github-actions[bot] avatar Sep 18 '25 18:09 github-actions[bot]

Is there an actual use case for running laze without any subcommand?

Printing the help is certainly better than the current state. I'd rather have some descriptive message, maybe even per-project. Let me think about this.

kaspar030 avatar Sep 23 '25 20:09 kaspar030

Printing the help is certainly better than the current state. I'd rather have some descriptive message, maybe even per-project. Let me think about this.

Any suggestions on how to progress here?

bergzand avatar Oct 20 '25 07:10 bergzand