cli-argument-helper - v2.3.0
    Preparing search index...
    • Get an argument from the argument list based on the given index.

      Type Parameters

      • T

      Parameters

      • args: string[]

        List of arguments

      • index: number = 0

        Index of the argument that we're trying to get

      • transform: (value: string) => T

        Transformation function

      • validate: (value: unknown) => value is T

        Validation function

      Returns null | T

      Argument value or null if the value is not valid or not found