Skip to content

feat: scope --info=no/-<flag> negation to internal use only#4060

Merged
oferchen merged 2 commits into
masterfrom
feat/info-no-dash-internal-only-2167
May 14, 2026
Merged

feat: scope --info=no/-<flag> negation to internal use only#4060
oferchen merged 2 commits into
masterfrom
feat/info-no-dash-internal-only-2167

Conversation

@oferchen
Copy link
Copy Markdown
Owner

Summary

  • Upstream rsync 3.4.1's parse_output_words (options.c:427) does not implement the no<flag> or -<flag> negation prefixes for --info=. The supported user-facing spelling is the suffix form (e.g. --info=progress0, --info=stats0).
  • The parser continues to accept the prefix forms for backwards compatibility and to tolerate server-mode token forwarding when oc-rsync invokes itself or its daemon. The --info=help output no longer advertises them.
  • Added comment on parse_flag_and_level documenting the internal-only status and added tests that pin both the help-text scrub and the parser's continued acceptance of the prefix forms.
  • Updated docs/audits/info-flags-verbosity-matrix.md to mark I13 RESOLVED.

Resolves #2167.

Test plan

  • cargo nextest run -p cli --all-features -E 'test(info_flag)' passes in CI
  • cargo nextest run -p cli --all-features -E 'test(info_help)' passes in CI
  • CI fmt + clippy clean

Upstream rsync 3.4.1's parse_output_words (options.c:427) does not
implement the `no<flag>` or `-<flag>` negation prefixes; it relies on
the `flag0` suffix form documented in rsync.1.md.

The parser continues to accept both prefix forms for backwards
compatibility and to tolerate server-mode token forwarding, but the
user-facing `--info=help` output no longer advertises them so users do
not come to depend on a non-portable spelling.

Resolves I13 in docs/audits/info-flags-verbosity-matrix.md.
@github-actions github-actions Bot added the enhancement New feature or request label May 14, 2026
…nternal-only-2167

# Conflicts:
#	crates/cli/src/frontend/execution/flags/info.rs
@oferchen oferchen merged commit 9007c8b into master May 14, 2026
44 of 45 checks passed
@oferchen oferchen deleted the feat/info-no-dash-internal-only-2167 branch May 14, 2026 14:57
oferchen added a commit that referenced this pull request May 18, 2026
Upstream rsync 3.4.1's parse_output_words (options.c:427) does not
implement the `no<flag>` or `-<flag>` negation prefixes; it relies on
the `flag0` suffix form documented in rsync.1.md.

The parser continues to accept both prefix forms for backwards
compatibility and to tolerate server-mode token forwarding, but the
user-facing `--info=help` output no longer advertises them so users do
not come to depend on a non-portable spelling.

Resolves I13 in docs/audits/info-flags-verbosity-matrix.md.
oferchen added a commit that referenced this pull request May 18, 2026
Upstream rsync 3.4.1's parse_output_words (options.c:427) does not
implement the `no<flag>` or `-<flag>` negation prefixes; it relies on
the `flag0` suffix form documented in rsync.1.md.

The parser continues to accept both prefix forms for backwards
compatibility and to tolerate server-mode token forwarding, but the
user-facing `--info=help` output no longer advertises them so users do
not come to depend on a non-portable spelling.

Resolves I13 in docs/audits/info-flags-verbosity-matrix.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant