Public bug reported:

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

** Affects: mahara
     Importance: Wishlist
         Status: New


** Tags: cli

** Changed in: mahara
   Importance: Undecided => Wishlist

-- 
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:
  New

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to