Skip to content

Parsing of arguments on tiny CLI script could be better #7

Open
@Tenzer

Description

@Tenzer

There are two issues I haven't figured out how to solve properly in your code:

  1. If the tiny script is ran without any arguments, the program doesn't output anything and never exits. It would probably be better if it had a fallback to running usage() if no other operation has been requested.
  2. Writing multiple arguments together to ie. -dp will cause the program to just exit right away, and not do anything. I can't help but think using some other node module for parsing the arguments would make it much easier, instead of reinventing the wheel. That would of course introduce another dependency though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions