This
file will add bash completions that give tab completion to the
OpenFst command line flags and enumerable value types.
Three types of completions are created based on the flag’s value type.
- Flags which accept path or numeric values will complete with a trailing = character and then default to the standard completion.
- Binary flags will complete without a trailing = character.
- Flags which can accepte an enumerable string value will complete will a trailing = and then suggest suitable values. For example the
–-arc_type=
value completions will suggest log
and standard
as the values parameters.
To use simply source the completion file.
source openfstbc
Tested on Ubuntu 10.04 under bash 4.5. The completions don't seem to work correctly on earlier versions of bash (<4).
--
PaulDixon - 21 Feb 2011