@@ -29,6 +29,7 @@ const FLAVORS: &[HelpSection] = sections![
2929const ENGINES : & [ HelpSection ] = sections ! [
3030 table Compact {
3131 "pcre2" => { [ "PCRE2 regex engine, using the " c: "pcre" " flavor" ] }
32+ "rust" => { [ "Rust regex engine, using the " c: "rust" " flavor" ] }
3233 }
3334] ;
3435
@@ -164,25 +165,15 @@ pub(super) const TEST_HELP: Help = Help(sections![
164165 Use " c: "-h" " for short descriptions and " c: "--help" " for more details." ]
165166
166167 "Usage" {
167- [ "pomsky test [OPTIONS] --path <PATH>" ]
168- }
169-
170- "Args" {
171- table Auto {
172- "<INPUT>" => {
173- [ "Pomsky expression to test" ]
174- Long [ "\n \
175- To learn about the pomsky language, start here:\n \
176- https://pomsky-lang.org/docs/"]
177- }
178- }
168+ [ "pomsky test [OPTIONS]" ]
179169 }
180170
181171 "Options" {
182172 table Auto {
183- " --allowed-features <FEATURE>..." => {
184- [ "Comma-separated list of allowed features [default: all enabled]" ]
185- Long [ "Supported features are listed below." ]
173+ "-p, --path <PATH>" => {
174+ [ "File or directory containing the pomsky expressions to compile" ]
175+ Long [ "If a directory is specified, all contained " c: "*.pomsky" " files are tested.
176+ Note that pomsky respects " c: ".gitignore" " files." ]
186177 }
187178 "-f, --flavor <FLAVOR>" => {
188179 [ "Regex flavor" ]
@@ -193,18 +184,17 @@ pub(super) const TEST_HELP: Help = Help(sections![
193184 [ "Regex engine used for testing" ]
194185 Long [ "If " c: "--flavor" " is specified, the engine can be omitted." ]
195186 }
187+ " --pass-with-no-tests" => {
188+ [ "Don't error if the specified directory contains no " c: "*.pomsky" " files" ]
189+ }
190+ " --allowed-features <FEATURE>..." => {
191+ [ "Comma-separated list of allowed features [default: all enabled]" ]
192+ Long [ "Supported features are listed below." ]
193+ }
196194 "-h, --help" => {
197195 [ "Print help information" ]
198196 Long [ "Use " c: "-h" " for short descriptions and " c: "--help" " for more details." ]
199197 }
200- "-p, --path <PATH>" => {
201- [ "File or directory containing the pomsky expressions to compile" ]
202- Long [ "If a directory is specified, all contained " c: "*.pomsky" " files are tested.
203- Note that pomsky respects " c: ".gitignore" " files." ]
204- }
205- " --pass-with-no-tests" => {
206- [ "Don't error if the specified directory contains no " c: "*.pomsky" " files" ]
207- }
208198 "-W, --warnings <DIAGNOSTICS>" => WARNINGS
209199 " --json" => {
210200 Long [ "Report test results as JSON" ]
0 commit comments