Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: trunk help is confused by Microsoft Windows #556

Closed
mcclure opened this issue Jun 12, 2023 · 4 comments
Closed

Minor: trunk help is confused by Microsoft Windows #556

mcclure opened this issue Jun 12, 2023 · 4 comments
Labels

Comments

@mcclure
Copy link

mcclure commented Jun 12, 2023

I have installed trunk v0.16.0 and rust 1.69.0 on Windows 10. I open CMD.EXE and run:

trunk help serve

As expected it prints a readout beginning with:

trunk-serve
Build, watch & serve the Rust WASM app and all of its assets

USAGE:
    trunk serve [OPTIONS] [TARGET]

However sometimes for WSL reasons I invoke trunk like trunk.exe help serve, which Windows treats as an acceptable equivalent way of invoking the executable. This causes that first line to print funny:

trunk.exe-serve
Build, watch & serve the Rust WASM app and all of its assets

USAGE:
    trunk.exe serve [OPTIONS] [TARGET]

I don't think you mean to print "trunk.exe-serve" here. Maybe you are taking argv[0] a little too seriously? :)

@nicmr
Copy link

nicmr commented Jun 16, 2023

This is an upstream issue of the dependency clap, see here: clap-rs/clap#992.
There was a PR merged to address it, clap-rs/clap#3693, so it might be possible to fix this by updating the dependency.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 23, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
@mcclure
Copy link
Author

mcclure commented Aug 28, 2023

How do I reopen this, I do not know whether the bug was addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants