Cotal TypeScript packages
    Preparing search index...

    Function parseLaunchModes

    • Parse repeated --mode id=value pairs into a launch's modes: true and false set a toggle, and any other value names a choice's option. Fails loud on a missing =, an empty id or value, or an id given twice. Returns undefined when there are none.

      Parameters

      • pairs: string[] | undefined

      Returns Record<string, string | boolean> | undefined