drashland / line

A class-based, command-line interface (CLI) framework for Deno
https://drash.land/line
MIT License
10 stars 1 forks source link

Add support for N amount of arguments for a command #4

Open ebebbington opened 3 years ago

ebebbington commented 3 years ago

Summary

What:

Say my cli has a subcommand where i can do:

$ dmm update deps.ts
$ dmm update fs http
$ dmm update fs http drash
$dmm update deps.ts fs http drash

Where all arugments are optional

What Line should be able to do is allow the user to easily extract those arguments, eg public signature = "update [...modules]

Why:

Right now, i'm using a pure Deno solution to do this, but ideally, Line should be able to provide this for us, making it easier to extract the arguments

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

Example Pseudo Code (for implementation)

// Add example pseudo code for implementation
crookse commented 2 years ago

i'll try to get this in this month

crookse commented 2 years ago

moving to 2022 Q1

crookse commented 2 years ago

changing title to be inclusive of all commands (main commands and subcommands)