We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5b311 commit 8a301d3Copy full SHA for 8a301d3
lib/bashly/script/command.rb
@@ -27,7 +27,7 @@ def action_name
27
28
# Returns all the possible aliases for this command
29
def aliases
30
- alt ? [name] + alt : [name]
+ [name] + alt
31
end
32
33
# Returns an array of alternative aliases if any
lib/bashly/views/command/usage.erb
@@ -15,7 +15,7 @@
15
echo
16
fi
17
18
- <%- if alt.any? -%>
+ <%- if alt&.any? -%>
19
printf "<%= strings[:command_alias] % { alias: alt.join(', ') } %>\n"
20
21
<%- end -%>
0 commit comments