diff --git a/shell-completion/output-options.sh b/shell-completion/output-options.sh index 80b47fb21..0239416e6 100755 --- a/shell-completion/output-options.sh +++ b/shell-completion/output-options.sh @@ -15,8 +15,8 @@ main() { # Display all 200 possibilities? (y or n) # sed -rn 's/.* (-[a-zA-Z0-9]).*/\1/gp' < "$tmp" - # Do not print '=' after long options with arg because it makes completion - # for option arguments harder. + # Options requiring an argument make that explicit by appending + # the equal sign (=) sed -rn 's/.* (--[a-zA-Z][-_a-zA-Z0-9]*=?).*/\1/gp' < "$tmp" }