From 9b81afea853acc5b259f2f2d81ca4231389afdba Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 8 Sep 2021 22:27:14 -0700 Subject: [PATCH] lib: whitespace formatting in help strings --- lib/helpers.bash | 2 +- lib/search.bash | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index ec093b7ed2..02ec94a595 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -107,7 +107,7 @@ bash-it () example '$ bash-it disable alias hg [tmux]...' example '$ bash-it migrate' example '$ bash-it update' - example '$ bash-it search [-|@]term1 [-|@]term2 ... [ -e/--enable ] [ -d/--disable ] [ -r/--refresh ] [ -c/--no-color ]' + example '$ bash-it search [-|@]term1 [-|@]term2 ... [-e|--enable] [-d|--disable] [-r|--refresh] [-c|--no-color]' example '$ bash-it version' example '$ bash-it reload' example '$ bash-it restart' diff --git a/lib/search.bash b/lib/search.bash index f5e3150a3d..3f57143500 100644 --- a/lib/search.bash +++ b/lib/search.bash @@ -7,11 +7,11 @@ # # Usage: # ❯ bash-it search [-|@]term1 [-|@]term2 ... \ -# [ --enable | -e ] \ -# [ --disable | -d ] \ -# [ --no-color | -c ] \ -# [ --refresh | -r ] \ -# [ --help | -h ] +# [--enable |-e] \ +# [--disable |-d] \ +# [--no-color|-c] \ +# [--refresh |-r] \ +# [--help |-h] # # Single dash, as in "-chruby", indicates a negative search term. # Double dash indicates a command that is to be applied to the search result. @@ -50,7 +50,7 @@ _bash-it-search() { _about 'searches for given terms amongst bash-it plugins, aliases and completions' _param '1: term1' - _param '2: [ term2 ]...' + _param '2: [term2]...' _example '$ _bash-it-search @git ruby -rvm rake bundler' local component @@ -96,11 +96,11 @@ _bash-it-search-help() { ${echo_underline_yellow}USAGE${echo_normal} bash-it search [-|@]term1 [-|@]term2 ... \\ - [ --enable | -e ] \\ - [ --disable | -d ] \\ - [ --no-color | -c ] \\ - [ --refresh | -r ] \\ - [ --help | -h ] + [--enable |-e] \\ + [--disable |-d] \\ + [--no-color|-c] \\ + [--refresh |-r] \\ + [--help |-h] ${echo_underline_yellow}DESCRIPTION${echo_normal} @@ -186,7 +186,7 @@ _bash-it-component-term-matches-negation() { _bash-it-search-component() { _about 'searches for given terms amongst a given component' - _param '1: component type, one of: [ aliases | plugins | completions ]' + _param '1: component type, one of: [aliases|plugins|completions]' _param '2: term1 term2 @term3' _param '3: [-]term4 [-]term5 ...' _example '$ _bash-it-search-component aliases @git rake bundler -chruby'