Please allow (boolean) options without value

Created on 28 January 2025, 2 months ago

Currently if I run some cronjob with options without value from the command-line I get a notice, e.g.:

drush cron-run example_job quick

I get:

Undefined array key 1 UltimateCronCommands.php:263

This is inside the "run" method on this line:

list($key, $value) = explode('=', $pair);

The problem is the missing "=". I would need to write:

drush cron-run example_job quick=true

It'd be nice if Ultimate Cron were less strict on this and just assume "true".

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany rgpublic Düsseldorf 🇩🇪 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024