complete -W "one two tree" scriptname

More information

Refs

How to create a Bash completion script - Opensource.com