add method

void add(
  1. String arg,
  2. String description
)

Add arguments to storedArgs.

If the value of arg is 'file', then the argument will be displayed as '--file'.

argy.add('file', 'The file you want to work with');

Implementation

void add(String arg, String description) {

  storedArgs.add({
    arg: description,
  });
}