Function splitBy

  • Splits argv into two arrays by the first separator found. If it's not found, the second array returned will be empty.

    Parameters

    • argv: string[]
    • separator: string = '--'

    Returns [string[], string[]]