Problem/Motivation

If you read How to use negative number as argument value in a drush command? you will see that at this moment is not possible to use a negative value as argument, but for the drush mw-reorder command this is very important because the weight can be a negative integer.

Proposed resolution

Add a command option to allow negative values in the drush mw-reorder command.

Setting the onlyone module weight to -5.

drush mw-reorder onlyone 5 --minus

Remaining tasks

None.

User interface changes

None.

API changes

Added the --minus option to the drush mw-reorder command

Data model changes

None.

Comments

adriancid created an issue. See original summary.

  • adriancid committed 0bf37df on 8.x-1.x
    Issue #2910671: Allow to use negative values with the drush mw-reorder...
adriancid’s picture

Status: Active » Fixed
adriancid’s picture

Component: Code » Drush commands

  • adriancid committed bd1c0ec on 7.x-1.x
    Issue #2910671 by adriancid: Allow to use negative values with the drush...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.