mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
completion: Try to avoid parsing summary
In GES, the summary refers to options that are only available when built against gst-valdiate. Those where picked by our regex. This patch add a initial grep to try and filter-out as best as possible the content to which we will extract the command list.
This commit is contained in:
parent
35c4428083
commit
776e487737
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ ___gst_plugin_load () { _gst_mandatory_argument; }
|
|||
|
||||
_gst_all_arguments ()
|
||||
{
|
||||
COMPREPLY=( $(compgen -W "$($1 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*\|-[[:alpha:]],' | cut -d'=' -f1 | cut -d',' -f1)" -- $cur) )
|
||||
COMPREPLY=( $(compgen -W "$($1 --help-all | grep "^ -" | grep -oh '[[:graph:]]*--[[:graph:]]*\|-[[:alpha:]],' | cut -d'=' -f1 | cut -d',' -f1)" -- $cur) )
|
||||
}
|
||||
|
||||
_gst_mandatory_argument ()
|
||||
|
|
Loading…
Reference in a new issue