Shell completion is suggesting aliases #1875
Labels
area/v3
relates to / is being considered for v3
kind/feature
describes a code enhancement / feature request
kind/question
someone asking a question
My urfave/cli version is
v2.27.1
Checklist
Dependency Management
My project is using Go modules.
Describe the bug
My program called
emu
is built with this great module. Let's sayemu
has the following commands:kill
run
list
The
list
command also has an aliasls
.The problem is that both
list
andls
are shown in shell completion ("TAB completion"), which doesn't make much sense and is annoying:emu.mov
To reproduce wrong behavior
Expected behavior
Aliases are not shown in shell completion. This is how huge, popular CLI projects like
gh
ordocker
do it:Screen.Recording.2024-03-11.at.01.53.36.mov
(in Docker's case,
ls
is the main command andlist
is an alias - so my point is still valid).Want to fix this yourself?
Sure!
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: