diff options
author | Alon Zakai <azakai@google.com> | 2022-01-05 11:42:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 11:42:13 -0800 |
commit | 16c9b3042d925270d1536429a239261b5a7df9b8 (patch) | |
tree | 4c27cdfa36afbb6e66f69b7dab4292aa76926ea9 /test/lit/help/wasm-shell.test | |
parent | 79f76987ca899241a3f45d61e9b7964bcffb31a1 (diff) | |
download | binaryen-16c9b3042d925270d1536429a239261b5a7df9b8.tar.gz binaryen-16c9b3042d925270d1536429a239261b5a7df9b8.tar.bz2 binaryen-16c9b3042d925270d1536429a239261b5a7df9b8.zip |
Add categories to --help text (#4421)
The general shape of the --help output is now:
========================
wasm-foo
Does the foo operation
========================
wasm-foo opts:
--------------
--foo-bar ..
Tool opts:
----------
..
The options are now in categories, with the more specific ones - most likely to be
wanted by the user - first. I think this makes the list a lot less confusing.
In particular, in wasm-opt all the opt passes are now in their own category.
Also add a script to make it easy to update the help tests.
Diffstat (limited to 'test/lit/help/wasm-shell.test')
-rw-r--r-- | test/lit/help/wasm-shell.test | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/test/lit/help/wasm-shell.test b/test/lit/help/wasm-shell.test index c171e1428..c93045ef9 100644 --- a/test/lit/help/wasm-shell.test +++ b/test/lit/help/wasm-shell.test @@ -1,10 +1,21 @@ ;; RUN: wasm-shell --help | filecheck %s - -wasm-shell INFILE - -;; CHECK: Execute .wast files +;; CHECK: ================================================================================ +;; CHECK-NEXT: wasm-shell INFILE ;; CHECK-NEXT: -;; CHECK-NEXT: Options: +;; CHECK-NEXT: Execute .wast files +;; CHECK-NEXT: ================================================================================ +;; CHECK-NEXT: +;; CHECK-NEXT: +;; CHECK-NEXT: wasm-shell options: +;; CHECK-NEXT: ------------------- +;; CHECK-NEXT: +;; CHECK-NEXT: --entry,-e Call the entry point after parsing the module +;; CHECK-NEXT: +;; CHECK-NEXT: --skip,-s Skip input on certain lines (comma-separated-list) +;; CHECK-NEXT: +;; CHECK-NEXT: +;; CHECK-NEXT: General options: +;; CHECK-NEXT: ---------------- ;; CHECK-NEXT: ;; CHECK-NEXT: --version Output version information and exit ;; CHECK-NEXT: @@ -12,6 +23,3 @@ wasm-shell INFILE ;; CHECK-NEXT: ;; CHECK-NEXT: --debug,-d Print debug information to stderr ;; CHECK-NEXT: -;; CHECK-NEXT: --entry,-e Call the entry point after parsing the module -;; CHECK-NEXT: -;; CHECK-NEXT: --skip,-s Skip input on certain lines (comma-separated-list) |