Skip to content

Non-documented cli.Error #4

Closed

Description

@jaandrle

Added in a rush

Error: class extends Error{},

The purpose is to provide a way to send an error to user:

const letter= await read({ "-p": "Insert 'a'", "-n": 1 });
if(letter!=="a") cli.exi("Given letter is not 'a'!");

Todo

  • api
  • documentation

Activity

  1. added
    documentationImprovements or additions to documentation
    enhancementNew feature or request
    questionFurther information is requested
    on Sep 23, 2022
  2. added this to the v0.7.0 milestone on Sep 23, 2022
  3. self-assigned this
    on Sep 23, 2022
  4. changed the title [-]Tech – `cli.Error`[/-] [+]Non-documented `cli.Error`[/+] on Sep 24, 2022
  5. removed this from the v0.7.0 milestone on Sep 27, 2022
  6. linked a pull request that will close this issuev0.8.0 - `run`/`runA` #10on Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestquestionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions