@maschinenlesbar.org/smard-cli
    Preparing search index...

    Function assertArgument

    • Like assertValid, but with the message the CLI has always printed for a rejected argument value, which echoes the value: Invalid <name> "<value>". <reason>. shown is what to echo (the raw argv string where the CLI parsed it into another type); it defaults to the value, and is cut at MAX_MESSAGE_VALUE_LENGTH characters.

      Type Parameters

      • T

      Parameters

      • name: string
      • value: unknown
      • problem: Problem<unknown>
      • shown: string = ...

      Returns T