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
{{ message }}
Repository navigation
Fix validate command: output format, passthrough args, help text #92
1. Default output is too verbose (17K lines vs 356 lines)
Our output lists every single validation issue individually (7,793 issues = 17,460 lines for the HBN test dataset). The native deno run jsr:@bids/validator groups issues by code/subCode, shows 2 example files per group, then "N more files with the same issue", plus NeuroStars links and a summary table (356 lines).
2. No passthrough args
The bids-validator supports many options we don't expose (--ignoreNiftiHeaders, --max-rows, --schema, --debug, --outfile, etc.). Users can't pass these through.
3. Help text is cluttered
The addHelpText("after", ...) block adds a wall of text (Description, Requirements, Exit Codes, Examples) after the options list, making help hard to scan.
Strategy
Output format (main fix)
Instead of always running deno with --json and reformatting (which loses the native grouping), run deno in text mode by default and pass its stdout/stderr through directly. This matches the native bids-validator output automatically.
Default: run deno in text mode, pipe output through
--json: run deno with --json, pass raw JSON through
--verbose: pass --verbose to deno (its native verbose mode)
Keep validateBidsDataset() (JSON mode) for programmatic use by the upload command
Passthrough args
Support -- separator to pass extra args to the underlying bids-validator:
Activity
neuromechanist commentedon Feb 24, 2026
Fixed by PR #93 (merged)