]> git.tuebingen.mpg.de Git - paraslash.git/commit
bash completion: Fix help option parsing.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 May 2025 18:07:34 +0000 (20:07 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 May 2025 17:19:02 +0000 (19:19 +0200)
commit69d4838d0ae1eedb59166146dd3f1ead902dd6fc
tree60c185ec639ffdfffcff2d4a5f600a7797e1b719
parenta3c89d6243aa09495e72dbc0e6392db3d58fb9b4
bash completion: Fix help option parsing.

If we complete on para_client or para_audioc options rather than on server
or audiod subcommands, we parse the --help output to determine the options to
complete on. The regular expression we currently use for that is too lenient
because it also matches the options in the synopsis section of the help output.

Fix this by prefixing the expression with '^' to extract only the options
of the subsequent help text.
bash_completion