App execute wrong command when default command is set. #1548
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
My urfave/cli version is
( Put the version of urfave/cli that you are using here )
Checklist
Dependency Management
Describe the bug
A clear and concise description of what the bug is.
To reproduce
App executes wrong command when default command is set.
Observed behavior
Run the default command
inspect
rather than the specified commanddeclare
.$go run main.go declare --filename=abc
$2022/10/25 11:57:04 inspect
Expected behavior
Run the command
declare
.What would you have expected to happen immediately after the
reproduction steps above?
Additional context
Add any other context about the problem here.
If the issue relates to a specific open source GitHub repo, please
link that repo here.
If you can reproduce this issue with a public CI system, please
link a failing build here.
Want to fix this yourself?
We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, feel free to create a
pull request for it.
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: