← Back to team overview

mahara-contributors team mailing list archive

[Bug 851635] Re: CLI framework should support alternative option formats

 

** Changed in: mahara
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/851635

Title:
  CLI framework should support alternative option formats

Status in Mahara ePortfolio:
  Triaged

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/851635/+subscriptions


References