denisdefreyne / cri

A tool for building commandline applications
MIT License
120 stars 19 forks source link

Feature: Varargs parameter definitions #74

Open denisdefreyne opened 6 years ago

denisdefreyne commented 6 years ago

Idea: support parameter definitions for more than one argument. For example:

param :host
param :port, transform: method(:Integer)
param :filenames, varargs: true

varargs: true defines the parameter as corresponding to zero or more arguments.

For the time being, allowing it only as the last defined parameter is probably fine.