Skip to content

fix(builtins): support long options in tree builtin#973

Merged
chaliy merged 1 commit intomainfrom
fix/issue-949-tree-long-options
Apr 2, 2026
Merged

fix(builtins): support long options in tree builtin#973
chaliy merged 1 commit intomainfrom
fix/issue-949-tree-long-options

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 2, 2026

Summary

  • Fix tree --noreport being parsed as combined short flags causing invalid option -- '-'
  • Added long option parsing (--noreport, --dirsfirst, etc.) before the short-flag character loop

Test plan

  • New spec test: tree_noreport — verifies --noreport suppresses report line
  • No regressions in existing spec tests
  • clippy + fmt clean

Closes #949

Add --noreport long option parsing before the short-flag character loop.
Previously, --noreport was parsed as combined short flags, causing an
invalid option error on the second '-'.

Closes #949
@chaliy chaliy merged commit d6335ff into main Apr 2, 2026
27 checks passed
@chaliy chaliy deleted the fix/issue-949-tree-long-options branch April 2, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tree builtin does not support long options like --noreport

1 participant