Closed Bug 768686 Opened 12 years ago Closed 8 years ago

GCLI should support rest... arguments for commands

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: fitzgen, Unassigned)

Details

Should be able to create a command that takes N arguments of the same type. For example an `xargs` command depends on this feature, as does a path join command.

   > xargs <command> input1 input2 ... inputN
   Running "<command> input1"
   Running "<command> input2"
   ...
   Running "<command> inputN"

or

   > join example.com path/a path/b foo.txt
   example.com/path/a/path/b/foo.txt
Some work on ArrayArguments has been done already. The assumption at the time was that we would use { type: 'string[]' } as the configuration syntax.

On one hand 'string...' might be slightly more javascripty. I think it might come down to if when done there is a way to have more than one array parameter. If it is, then this isn't really rest arguments. Otherwise it is.
Priority: -- → P2
Target Milestone: --- → Future
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Component: Developer Tools: Console → Developer Tools: Graphic Commandline and Toolbar
Resetting priorities because these P* levels are very out of date.
Sorry for the bug spam. Filter on Lobster Thermidor
Priority: P2 → --
Triage. Filter on Lobster Thermidor.
Nice idea, but it's not been worked on in 4 years, and I don't see that the priority of GCLI has increased in that time, so I don't think we need to keep it on file.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.