Skip to content

Consolidate Wave 5 CLI parsing mode API and reconcile Wave 11 cli::Alias with core rfl::Alias #99

Done

Description

@clockblocker

Question

How should Wave 5 CLI parsing modes (cli::Settings vs processors across #25, #26, #30, #36, #48) be consolidated into one coherent API, and how should Wave 11 #62 (cli::Alias) reconcile with core field-alias (rfl::Alias) so users never juggle two competing alias mechanisms?

Evidence & Context

  • Parent map: Map (Lane 3): Practical CLI (rfl::cli)
  • PLANNED_PR_WAVES.md Wave 5: Fragmented configuration surface across #25, #26, #30, #36, #48 (cli::Settings vs compile-time processors).
  • PLANNED_PR_WAVES.md Wave 11: #62 (cli::Alias) overlaps with core field-alias (rfl::Alias).

Prototype & Measurement Plan

  • Prototype on: showcase/all-lanes — unify the Wave 5 parsing-mode surface and reconcile cli::Alias with rfl::Alias.
  • Measure against real Showcase Migrations: Verify ergonomics and zero regressions against osmium-tool#3 and solidity#2.
  • Judges & landing: Run Judges (gemini-4-neon + claude-opus-5-5 high via antigravity delegates) on the prototype diff and measurements; if green, hand to coordinator to land on showcase/all-lanes.

Activity

  1. added
    wayfinder:prototype
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Settled CLI Benchmark & Wave 12 #83 Review Context:

    • rfl::cli::Settings + src/rfl/cli/*.cpp benchmark: Cuts −31% compile time / −50.1% .o / −26.1% binary on 2-preset TUs (+352 B vs +1.02 MB per preset). Confirm Settings vs Processors direction with the upstream maintainer before shipping Wave 5.
    • UsageWalker benchmark (without static cache): Cuts .o −63.8% (read+usage) / −87.5% (usage-only) and −16% to −22% compile time → folding into Wave 4 cli::usage (#23+#35+#39, closing #692), followed by #28+#47 (cli::App, closing #347).
    • Wave 11 cli::Alias ↔ Wave 12 #83 (field-alias) coordination: Note #83 currently has 5 review blockers being fixed (including a misleading CLI alias-vs-alias conflict message and is_skip/field_aliases wrapper composition gaps) and must land before #82 (nested-tagged-union).
  3. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Update: #83 (field-alias, 0c4c630c) is now 100% signed off (SHIP AS-IS) with all 5 blockers resolved (including the CLI alias-vs-alias conflict message and GCC 11/12 constexpr fixes); #82 (6bcb482b) has been rebased onto #83.

  4. added 2 commits that reference this issue on Nov 27, 2026
  5. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Landed on showcase/all-lanes at d0f1fca1 (dual-Judge approved by claude-opus-5-5 high + gemini-4-neon high; 469/469 targets 0 warnings, 1,137/1,137 CTests).

    • Added include/rfl/cli/Settings.hpp consolidating all Wave 5 CLI parsing modes into one runtime rfl::cli::Settings value (default_settings, gnu, gnu_last_wins, posix_strict, single_dash, from_processors<Ps...>()), wired across read, read_detailed, read_into, read_app, usage, describe, DynamicOptions, and CommandNode (with bidirectional reject_unknown / NoExtraFields override and std::same_as<Settings> overload constraints keeping braced-init UsageOptions unambiguous).
    • Reconciled Wave 11 cli::Alias / rfl::cli::attr::Alias with core rfl::Alias (using rfl::Alias; in rfl::cli, field_aliases_impl specialization for rfl::cli::Opt<T, Attrs...> + transparent wrappers, compile-time no_alias_collisions, and full rfl::Alias support across CLI read, read_into, usage, describe, and JSON/YAML/XML/Generic/env).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:prototype

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions