@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. It is quoted visibly (quoteValue: an invisible or control character is shown escaped, \u200b) and cut at MAX_MESSAGE_VALUE_LENGTH characters, the "…" after the quote.

      Type Parameters

      • T

      Parameters

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

      Returns T