CLI framework should support alternative option formats

Bug #851635 reported by Andrew Nicols
6
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

Tags: cli
Changed in mahara:
importance: Undecided → Wishlist
Changed in mahara:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.