Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 20:45
· 759 commits to main since this release
v0.7.0
4c607d2

Release Notes - Version 0.7.0

Summary

This release introduces a new interactive auditing tool for contributors and delivers a massive update to the help-text parsing engine. Across the fleet, dozens of parsing edge cases have been resolved, including correct handling of command headings with placeholders, nested docopt brackets, comma-glued values (e.g., -Wa,<options>), and +-prefixed flags. The UI has also been refined to handle duplicated parent-child help text more elegantly and improve USAGE section soft-wrapping.

Install

Homebrew (macOS or Linux)

brew install as-foss/mandible/mandible

Fedora / EPEL (COPR repository)

sudo dnf copr enable as-foss/mandible
sudo dnf install mandible

Nix

nix run github:AS-FOSS/mandible

Cargo

cargo binstall mandible
cargo install mandible

Debian and Ubuntu: the signed apt repository carries every released version for amd64 and arm64, with setup instructions.

Or download a binary below. Verify with the accompanying .sha256.


Added

  • Contributor Auditing: Added cargo xtask audit contribute, an interactive workflow that walks contributors through auditing mandible against their locally installed tools—handling login, random 20-tool draws (excluding already audited tools), review, and verdict file generation (see CONTRIBUTING.md §2).
  • Smart Ancestor Deduplication: Subcommands whose --help output is a byte-for-byte repetition of their parent command now render a clean description, accepted modifiers, and a notice explaining that t shows the live text, eliminating walls of duplicated raw text (e.g., mandible ar operations r/m/q/t/x).

Fixed

UI & Display

  • Flag Alignment: The detail pane now strictly displays a flag's short spelling before its long one (-d, --decode, never --decode, -d), maintaining visual alignment mid-list.
  • Usage Wrapping & Cleanup: The detail pane's USAGE section now soft-wraps at the pane width instead of forcing horizontal scrolling. It also correctly suppresses internal continuation markers (or:) and doubled tool names (e.g., mandible cp, mandible ar).
  • Inherited Confidence Status: A same-as-ancestor node's status bar now correctly displays same as parent rather than an inaccurate low confidence: 0% parsed.

Parsing Engine & Usage Synopsis

Placeholders & Operands:

  • Recognized command headings followed by argument placeholders (e.g., start UNIT...) now parse correctly as commands with the placeholder retained as a usage line.
  • Blocks directly beneath usage lines that define positional descriptions now properly map to the positionals (e.g., invoke-rc.d).
  • Usage line operands with glued repetition dots ([file...]) are now correctly marked as repeatable, matching standard spaced dots.
  • Trailing runs of two or more operands on a usage line are all captured with their respective optionality and repetition, instead of truncating after the first (e.g., mandible xfs_mkfile, mandible nft).
  • Flags documented exclusively on a usage line (e.g., vim ... -q [errorfile]) now correctly retain their associated operands in the tree.

Complex Flag Shapes:

  • Bare end-of-options markers (--) now successfully reach the parsed tree from both option tables and usage lines (e.g., mandible cargo-fmt, mandible awk).
  • Plus-prefixed option rows (e.g., +, +<lnum>) are no longer dropped when listed beside standard - flags (e.g., mandible vim).
  • Single-dash spellings glued directly to a comma (e.g., -Wa,<options>) parse as standalone flags with the comma correctly attached to the value, rather than truncating to -W (e.g., mandible gcc).
  • Flags completely composed of # characters (e.g., -###) parse natively instead of truncating to -#.
  • Flags containing underscores (--extended_fields) are no longer prematurely truncated with fabricated value names.

Bracket & Parentheses Groups:

  • Double glued bracket groups (-V[N][fname]) and nested bracket groups (-e[CHAR[WIDTH]]) now retain all closing brackets and aliases instead of dropping text at the first closing bracket.
  • Parenthesized spelling qualifiers (-r (with file name)) are safely split: the qualifier names the value where applicable and moves the rest to the description, avoiding truncation.
  • Docopt bracket rows with trailing |-separated choice lists (e.g., --units [Number]r|R|h|...) now correctly attach the choices to the flag instead of discarding them (e.g., mandible pvdisplay and the LVM2 family).

Aliases & Formatting:

  • Generic dashed placeholder tokens in usage lines ([-options]) no longer fabricate short flags with glued value names.
  • Unheaded, heavily indented worked-example lines no longer fold into the preceding flag's description (e.g., mandible nfsslower-bpfcc).
  • Descriptions containing enumerated lists folded into a single paragraph (0 -> ... 1 -> ...) now correctly start a new line at each item, while ignoring standard numeric ranges.
  • Tools that document aliases on separate rows (e.g., mandible icupkg's three -t, --type rows) or joined by the word or (-h or -?) now properly merge into a single flag or retain independent descriptions, rather than fabricating descriptions from the second alias.
  • Spellings duplicated across both the usage line and the option row (e.g., mandible date's --universal) no longer create duplicate nodes.
  • Prose sentences hard-wrapping onto a dash-led word no longer fabricate phantom flags (e.g., mandible zgrep).
  • Usage continuations that spell the tool as a full path (/usr/bin/ar) or append or to a line now correctly open new usage forms instead of corrupting the current block.

Contributors