marianoguerra/wax-cli/wax-mb does not have a README file

    Command

    pub(all) enum Command {
    Convert
    Format
    Check
    } derive(Eq,
    Debug
    )

    What the tool was asked to do.

    Options

    pub(all) struct Options {
    command : Command
    files : Array[String]
    output_format : String
    input_format : String
    output_path : String?
    error_format :
    OutputFormat

    color :
    Flag

    check_only : Bool
    all_errors : Bool
    inplace : Bool
    policy :
    Policy

    features :
    Set

    try_table : Bool
    validate : Bool
    defines : Map[String,
    Define
    ]
    }

    A parsed command line.

    Status

    pub(all) enum Status {
    Ok
    Usage
    BadArgs
    Internal
    Rejected
    } derive(Eq,
    Debug
    )

    Exit statuses, shared by every command.

    The distinction is HOW YOU USED THE TOOL (123/124) against THE INPUT IS BAD (128), so a CI gate can tell a broken invocation from a rejected file.

    Status::code

    fn Status::code(self : Status) -> Int

    parse_args

    fn parse_args(argv : Array[String]) -> Result[Options, (Status, String)]

    Parse argv, or explain why it could not be.

    Flags are accepted anywhere, before or after the file names, since that is what the reference's parser does and what scripts assume.

    prog

    fn prog() -> String

    NAME: -- the prefix this program's own errors carry.

    set_prog_name

    fn set_prog_name(argv0 : String) -> Unit

    Set the name from argv[0]. Anything without a path is used as it stands.

    usage_line

    fn usage_line(argv : Array[String]) -> String

    The usage line the reference's command-line parser prints above an error in an option's value, for the subcommand argv names.

    Source Files