You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openvdb_cmd/vdb_tool/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -563,6 +563,19 @@ vdb_tool -help
563
563
vdb_tool -help read write
564
564
```
565
565
566
+
## Searching for an action by keyword
567
+
Lists every action whose name or documentation contains the (case-insensitive) keyword, so you can discover the right action without scrolling the full help. Add `brief=true` for a compact, one-line-per-action listing.
568
+
```
569
+
vdb_tool -help search=mesh
570
+
```
571
+
572
+
## Did-you-mean suggestions for mistyped actions
573
+
A mistyped action name — whether invoked directly or queried via `-help`— reports the closest known names instead of just failing:
574
+
```
575
+
vdb_tool -help mesh2sl # -> Did you mean: "-mesh2ls" or "-mesh2sdf"?
Copy file name to clipboardExpand all lines: openvdb_cmd/vdb_tool/include/Tool.h
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -597,6 +597,7 @@ void Tool::init()
597
597
{{"actions", "", "read,write,...", "list of actions to document. If the list is empty documentation is printed for all available actions and if other actions proceed this action, documentation is printed for those actions only"},
598
598
{"exit", "true", "1|0|true|false", "toggle wether to terminate after this action or not"},
599
599
{"brief", "false", "1|0|true|false", "toggle brief or detailed documentation"},
600
+
{"search", "", "mesh", "case-insensitive keyword: list every action whose name or documentation contains it (e.g. search=mesh). Useful for discovering the right action without scrolling the full help."},
600
601
{"format", "text", "text|md", "output format. 'text' (default) is the usual human-readable help; 'md' emits a single Markdown table of action names + descriptions, used to regenerate the action list in README.md so it can't drift from the registered actions."}},
601
602
[](){}, [&](){this->help();}, 0); // anonymous options are appended to "actions"
602
603
@@ -1266,6 +1267,28 @@ void Tool::help()
1266
1267
constbool stop = mParser.get<bool>("exit");
1267
1268
constbool brief = mParser.get<bool>("brief");
1268
1269
const std::string format = mParser.get<std::string>("format");
Copy file name to clipboardExpand all lines: pendingchanges/openvdb_cmd.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ vdb_tool:
23
23
- Action "-read" now supports ASCII XYZ point files (.xyz), where each line holds the x, y and z coordinates of a single point separated by whitespace. Blank lines and lines beginning with '#' are skipped as comments; any other line that does not parse as three numbers raises an error identifying the offending text. The points are accumulated as a vertex-only primitive (no faces), suitable for conversion to a VDB via -points2ls or -points2vdb. The data can also be streamed from standard input using the name "stdin.xyz".
24
24
- Action "-mesh2ls/mesh2sdf" now supports generation of asymmetric narrow bands.
25
25
- Improved error reporting when using unsupported actions and options.
26
-
- Actions can now have multiple names, e.g. "-read", "-import", "-load", "-i".
26
+
- Actions can now have multiple names (or aliases), e.g. "-read", "-import", "-load", "-i".
27
27
- Added cutoff option to "-ls2fog" action.
28
28
- Improved error reporting in vdb_tool (prints diagnostic error messages).
29
29
- Improved error handling in vdb_tool (will recover from non-fatal errors).
0 commit comments