Skip to content

Commit

Permalink
Merged in bgol/tradedangerous/devel (pull request #128)
Browse files Browse the repository at this point in the history
added the new parameters to the bash-competion
  • Loading branch information
kfsone committed Apr 25, 2015
2 parents e90b38e + f0c436d commit 0500d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/td-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ _td_import()
prev="${COMP_WORDS[COMP_CWORD-1]}"

case ${prev} in
--plug)
--plug|-P)
opts="maddavo"
COMPREPLY+=( $(compgen -W "${opts}" -- ${cur}) )
;;
Expand Down Expand Up @@ -231,7 +231,7 @@ _td_run()
prev="${COMP_WORDS[COMP_CWORD-1]}"

case ${prev} in
--capacity|--credits|--ly-per|--from|-f|--to|-t|--via|--avoid|--hops|--jumps-per|--empty-ly|--start-jumps|-s|--end-jumps|-e|--limit|--age|--max-days-old|-MD|--ls-penalty|--lsp|--margin|--insurance|--routes|--towards|-T|--ls-max|--gain-per-ton|--gpt|--max-gain-per-ton|--mgpt|--max-routes|--prune-score|--prune-hops)
--capacity|--credits|--ly-per|--from|-f|--to|-t|--via|--avoid|--hops|--jumps-per|--empty-ly|--start-jumps|-s|--end-jumps|-e|--limit|--age|--max-days-old|-MD|--ls-penalty|--lsp|--margin|--insurance|--routes|--towards|-T|--ls-max|--gain-per-ton|--gpt|--max-gain-per-ton|--mgpt|--max-routes|--prune-score|--prune-hops|--stock|--loop-interval|-li)
# argument required
;;
--pad-size|-p)
Expand All @@ -240,7 +240,7 @@ _td_run()
;;
*)
_td_common && return 0
opts="--capacity --credits --ly-per --from --to --via --avoid --hops --jumps-per --empty-ly --start-jumps --end-jumps --limit --age --max-days-old --ls-penalty --unique --margin --insurance --routes --checklist --x52-pro --towards --loop --direct --pad-size --black-market --ls-max --gain-per-ton --gpt --max-gain-per-ton --mgpt --max-routes --prune-score --prune-hops --progress ${common_opts}"
opts="--capacity --credits --ly-per --from --to --via --avoid --hops --jumps-per --empty-ly --start-jumps --end-jumps --limit --age --max-days-old --ls-penalty --unique --margin --insurance --routes --checklist --x52-pro --towards --loop --direct --pad-size --black-market --ls-max --gain-per-ton --gpt --max-gain-per-ton --mgpt --max-routes --prune-score --prune-hops --progress --stock --summary --loop-interval --shorten ${common_opts}"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
;;
esac
Expand Down

0 comments on commit 0500d8e

Please sign in to comment.