Allow mahara cli interface to accept multiple values for same flag

Bug #1876177 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

This bug report is to allow the extending of the cli interface to accept multiple values from the same flag

For example, currently if I were to go:

sudo -u www-data php htdocs/admin/cli/sync_langpacks.php -l=de -l=fr -l=es

It would only update the Spanish (es) language pack

With this change it will allow three options to be read and treated as an array of de,fr,es

and so update all three language packs

Tags: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 20.10.0
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10601
Committed: https://git.mahara.org/mahara/mahara/commit/b110876da82e3a5c388a7c8a4653b8a6a52aa51c
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit b110876da82e3a5c388a7c8a4653b8a6a52aa51c
Author: Robert Lyon <email address hidden>
Date: Tue Nov 12 12:31:13 2019 +1300

Bug 1876177: Cli to fetch multiple flags of same name from command line

To allow us to handle some behat stuff where --format= can be passed
in twice

Change-Id: I00d20d712eb7097cdc685391819eeca66b7fefcc
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.