CLI framework should support alternative option formats
Bug #851635 reported by
Andrew Nicols
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
At present the CLI framework grabs $argv wholesale and works through it testing whole words.
Typically, the short form of an option has always allowed a slightly different form. Whilst the long option might be
--foo=bar
The short option should support:
-f bar
Additionally, both options should support the use of quotes:
--title="Hello World"
- "Hello World"
We therefore need to implode the $argv array, and write a suitable regexp to handle this in a while loop instead
Changed in mahara: | |
importance: | Undecided → Wishlist |
Changed in mahara: | |
status: | New → Triaged |
To post a comment you must log in.