@@ -191,12 +191,12 @@ fn complete_dynamic_env_toplevel() {
191191
192192 let input = "exhaustive \t \t " ;
193193 let expected = snapbox:: str![ [ r#"
194- % exhaustive action
195- action pacman --generate (generate)
196- alias quote --global (everywhere)
197- help (Print this message or the help of the given subcommand(s)) value --help (Print help)
198- hint -h (Print help) --version (Print version)
199- last -V (Print version)
194+ % exhaustive --global
195+ --global (everywhere) -V (Print version) last
196+ --generate (generate) action pacman
197+ -- help (Print help) alias quote
198+ --version (Print version) help (Print this message or the help of the given subcommand(s)) value
199+ -h (Print help) hint
200200"# ] ] ;
201201 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
202202 assert_data_eq ! ( actual, expected) ;
@@ -215,6 +215,18 @@ fn complete_dynamic_env_quoted_help() {
215215 let input = "exhaustive quote \t \t " ;
216216 let expected = snapbox:: str![ [ r#"
217217% exhaustive quote
218+ --single-quotes (Can be 'always', 'auto', or 'never')
219+ --double-quotes (Can be "always", "auto", or "never")
220+ --backticks (For more information see `echo test`)
221+ --backslash (Avoid '/n')
222+ --brackets (List packages [filter])
223+ --expansions (Execute the shell command with $SHELL)
224+ --choice
225+ --global (everywhere)
226+ --help (Print help (see more with '--help'))
227+ --version (Print version)
228+ -h (Print help (see more with '--help'))
229+ -V (Print version)
218230cmd-backslash (Avoid '/n')
219231cmd-backticks (For more information see `echo test`)
220232cmd-brackets (List packages [filter])
@@ -223,18 +235,6 @@ cmd-expansions (Execute the shell command with $SHELL)
223235cmd-single-quotes (Can be 'always', 'auto', or 'never')
224236escape-help (/tab "')
225237help (Print this message or the help of the given subcommand(s))
226- -h (Print help (see more with '--help'))
227- -V (Print version)
228- --backslash (Avoid '/n')
229- --backticks (For more information see `echo test`)
230- --brackets (List packages [filter])
231- --choice
232- --double-quotes (Can be "always", "auto", or "never")
233- --expansions (Execute the shell command with $SHELL)
234- --global (everywhere)
235- --help (Print help (see more with '--help'))
236- --single-quotes (Can be 'always', 'auto', or 'never')
237- --version (Print version)
238238"# ] ] ;
239239 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
240240 assert_data_eq ! ( actual, expected) ;
0 commit comments