Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions contrib/bash-completion/bob
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ __bob_subcommands()
-C?*)
chroot+=( "${c:2}" )
;;
--query)
--query | --debug | --color)
if [[ $parse_pos -lt $COMP_CWORD ]] ; then
: $((parse_pos++))
fi
Expand All @@ -440,13 +440,18 @@ __bob_subcommands()
__bob_complete_dir "${cur:2}" "-C"
;;
-*)
__bob_complete_words "-h --help -i --version -C --query"
__bob_complete_words "-h --help -i --version -C --query
--debug --color"
;;
*)
if [[ $prev == "-C" ]] ; then
__bob_complete_dir "$cur"
elif [[ $prev == "--query" ]] ; then
__bob_complete_words "nullset nullglob nullfail"
elif [[ $prev == "--debug" ]] ; then
__bob_complete_words "pkgck ngd prof"
elif [[ $prev == "--color" ]] ; then
__bob_complete_words "never always auto"
else
__bob_complete_words "$1"
fi
Expand Down
2 changes: 1 addition & 1 deletion pym/bob/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def cmd():
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('-C', '--directory', dest='directory', action='append', help="Change to DIRECTORY before doing anything", metavar="DIRECTORY")
parser.add_argument('--version', dest='version', action='store_true', help="Show version")
parser.add_argument('--debug', dest='debug', help="Enable debug modes (pkgck,ngd)")
parser.add_argument('--debug', dest='debug', help="Enable debug modes (pkgck,ngd,prof)")
parser.add_argument('-i', dest='ignore_commandCfg', default=False, action='store_true',
help="Use bob's default argument settings and do not use commands section of the userconfig.")
parser.add_argument('--color', dest='color_mode',
Expand Down