Skip to content

Update document and working example on flag parsing #563

Open

Description

@jackshi0912

The current documnetation and working example uses legacy flag parsing APIs.

This does not support immutable fiddlers. The example/doc could be updated to use up to date APIs for parsing/defining flags.

Activity

  1. rksharma-owg commented on Oct 14, 2026

    @rksharma-owg

    The code lab now documents DEFINE_fiddle_config() and DEFINE_fiddle_sweep() and explicitly labels fiddle/absl_flags/example as the legacy example. The modern single-config example is still under _src.

    I checked current main (8384c49d6fc7895dadd220e11dc7e7bb02129890): a fiddler returning a replacement config leaves the legacy result unchanged, while the modern API uses the replacement. The documented legacy example itself runs successfully, and the 23 flag-utility/sweep tests pass.

    Is the remaining scope here a public runnable modern-API example alongside the legacy one, or do you want the existing business example migrated? Adding a modern sibling would let it demonstrate immutable fiddlers while preserving the documented legacy commands.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions