make_bash_completions(1)

Synopsis

make_bash_completions out-file program [user-completions-file]

Description

make_bash_completions generates a bash-completion script out-file for program. assuming its help text is formatted according to Boost’s program options library, with program options like:

--opt1             Non-argument option
--opt2 arg         Option with argument
-O [ --opt3 ] arg  Long and short options with argument

Arguments

out-file

Name of the bash-completions script to be generated.

program

Name of the program (to be found in PATH) or its absolute path for which to generate the completions script.

user-completions-file

Path to a file containing explicit completions to add to out-file.