Skip to content

Commit e7af108

Browse files
authored
Merge pull request #746 from akinomyoga/refactor-doc-comment
Consistent documentation comments
2 parents 2dfc8ad + 943ce17 commit e7af108

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

bash_completion

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ dequote()
173173
# will not unshadow the global variable. Rather, the result will be a local
174174
# variable in an unset state.
175175
# Usage: local IFS='|'; _comp_unlocal IFS
176-
# Param: $* Variable names to be unset
176+
# @param $* Variable names to be unset
177177
_comp_unlocal()
178178
{
179179
if ((BASH_VERSINFO[0] >= 5)) && shopt -q localvar_unset; then
@@ -187,13 +187,13 @@ _comp_unlocal()
187187

188188
# Assign variable one scope above the caller
189189
# Usage: local "$1" && _upvar $1 "value(s)"
190-
# Param: $1 Variable name to assign value to
191-
# Param: $* Value(s) to assign. If multiple values, an array is
190+
# @param $1 Variable name to assign value to
191+
# @param $* Value(s) to assign. If multiple values, an array is
192192
# assigned, otherwise a single value is assigned.
193193
# NOTE: For assigning multiple variables, use '_upvars'. Do NOT
194194
# use multiple '_upvar' calls, since one '_upvar' call might
195195
# reassign a variable to be used by another '_upvar' call.
196-
# See: https://fvue.nl/wiki/Bash:_Passing_variables_by_reference
196+
# @see https://fvue.nl/wiki/Bash:_Passing_variables_by_reference
197197
_upvar()
198198
{
199199
echo "bash_completion: $FUNCNAME: deprecated function," \
@@ -213,8 +213,8 @@ _upvar()
213213
# Available OPTIONS:
214214
# -aN Assign next N values to varname as array
215215
# -v Assign single value to varname
216-
# Return: 1 if error occurs
217-
# See: https://fvue.nl/wiki/Bash:_Passing_variables_by_reference
216+
# @return 1 if error occurs
217+
# @see https://fvue.nl/wiki/Bash:_Passing_variables_by_reference
218218
_upvars()
219219
{
220220
if ! (($#)); then
@@ -1839,13 +1839,14 @@ _included_ssh_config_files()
18391839
# Also hosts from HOSTFILE (compgen -A hostname) are added, unless
18401840
# BASH_COMPLETION_KNOWN_HOSTS_WITH_HOSTFILE is set to an empty value.
18411841
# Usage: _known_hosts_real [OPTIONS] CWORD
1842-
# Options: -a Use aliases from ssh config files
1843-
# -c Use `:' suffix
1844-
# -F configfile Use `configfile' for configuration settings
1845-
# -p PREFIX Use PREFIX
1846-
# -4 Filter IPv6 addresses from results
1847-
# -6 Filter IPv4 addresses from results
1848-
# Return: Completions, starting with CWORD, are added to COMPREPLY[]
1842+
# Options:
1843+
# -a Use aliases from ssh config files
1844+
# -c Use `:' suffix
1845+
# -F configfile Use `configfile' for configuration settings
1846+
# -p PREFIX Use PREFIX
1847+
# -4 Filter IPv6 addresses from results
1848+
# -6 Filter IPv4 addresses from results
1849+
# @return Completions, starting with CWORD, are added to COMPREPLY[]
18491850
_known_hosts_real()
18501851
{
18511852
local configfile flag prefix=""

0 commit comments

Comments
 (0)