Skip to content

Commit 0d27563

Browse files
committed
refactor(carton): utility function main command convention
1 parent c14986a commit 0d27563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/carton

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
_comp_cmd_carton__commands()
44
{
5-
local cmds=$("${1:-carton}" usage 2>&1 |
5+
local cmds=$("$1" usage 2>&1 |
66
command sed -ne '/.*command.* is one of/{n;p;q;}')
77
_comp_compgen -aF $' \t\n,' -- -W "$cmds"
88
}
99

1010
_comp_cmd_carton__command_help()
1111
{
12-
local help=$(PERLDOC_PAGER=cat PERLDOC=-otext "${1:-carton}" -h "$2" 2>&1)
12+
local help=$(PERLDOC_PAGER=cat PERLDOC=-otext "$1" -h "$2" 2>&1)
1313
_comp_compgen -a -- -W '$help'
1414
}
1515

0 commit comments

Comments
 (0)