Formalization #7

Open
opened 2025-07-04 12:12:00 -04:00 by josh · 0 comments
Owner
  • ArgsList - A std::vector of std::strings.

  • Token - A std::string in the list of arguments.

  • Delimiter - A character that indicates a separation between two tokens. The set of supported delimiters is accessible.

  • Flag - An argument with a dashed prefix.

    • Shortflag - A single-dash prefixed token, and single character combo. -a -L Multiple can be grouped together: -abcdef.
    • Longflag - A double-dash prefixed token, and an arbitrary string label. --verbose. Flags often have a short alias, and one or more long aliases.
    • Flag-arg - A flag that is associated with a variable/argument. --file peter.txt -f=a.out
    • FlagArg, FlagArg, FlagArg, FlagArg, FlagArg?
  • Subcommand - A non-flag argument that invokes it's own argument parsing routine.

  • Automated help and completion.

  • Argument, Subcommand, and flag validation - Unrecognized Flag, Unrecognized Subcommand, Invalid Argument Type.

* ArgsList - A std::vector of std::strings. * Token - A std::string in the list of arguments. * Delimiter - A character that indicates a separation between two tokens. The set of supported delimiters is accessible. * Flag - An argument with a dashed prefix. * Shortflag - A single-dash prefixed token, and single character combo. `-a` `-L` Multiple can be grouped together: `-abcdef`. * Longflag - A double-dash prefixed token, and an arbitrary string label. `--verbose`. Flags often have a short alias, and one or more long aliases. * Flag-arg - A flag that is associated with a variable/argument. `--file peter.txt` `-f=a.out` * FlagArg<bool>, FlagArg<string>, FlagArg<path>, FlagArg<float>, FlagArg<int>? * Subcommand - A non-flag argument that invokes it's own argument parsing routine. * Automated help and completion. * Argument, Subcommand, and flag validation - Unrecognized Flag, Unrecognized Subcommand, Invalid Argument Type.
Sign in to join this conversation.
No description provided.