@elysiumoss/ui-capture - v0.3.0
    Preparing search index...

    Function parseArgs

    • Basic command line argument parser Supports --key value, --key=value, --flag, and positional arguments

      valueFlags names options whose value may itself look like a flag, so the next token is consumed even when it starts with --. Chromium switches passed to --launch-args are the motivating case: without this, a value like --enable-blink-features=X would be parsed as a separate option.

      Parameters

      • args: string[]
      • booleanFlags: string[] = []
      • valueFlags: string[] = []

      Returns {
          positional: readonly string[];
          options: { readonly [key: string]: string | boolean };
      }