deno-args icon indicating copy to clipboard operation
deno-args copied to clipboard

Improve typing of `help()`

Open KSXGitHub opened this issue 4 years ago • 0 comments

Currently, help functions accept any array of strings. It would be nice if help parameter can be narrowed down to specific union of string tuples.

For example: Let's say our application supports a main command and 3 subcommands which are foo, bar, and bar baz, then type of cmdPath parameter of help of main command should be [] | ['foo'] | ['bar'] | ['bar', 'baz']

KSXGitHub avatar Apr 10 '20 06:04 KSXGitHub