Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70131

CLI no longer recognises parameter starting with no-

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10
    • 3.10, 4.0
    • Other
    • MOODLE_310_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE
    • Hide
      1. Run: php admin/cli/cfg.php --component=enrol_self --name=version
      2. Make sure the version is printed and the command prompt is on the next line
      3. Run: php admin/cli/cfg.php --component=enrol_self --name=version --no-eol
      4. Make sure the version is printed and the command prompt is on the same line (--no-eol means "no end of line character")
      Show
      Run: php admin/cli/cfg.php --component=enrol_self --name=version Make sure the version is printed and the command prompt is on the next line Run: php admin/cli/cfg.php --component=enrol_self --name=version --no-eol Make sure the version is printed and the command prompt is on the same line (--no-eol means "no end of line character")

      We have a CLI script that had parameter "--no-tenant" (without value)
      after https://github.com/moodle/moodle/commit/b0e096d870e747208259f7b5ace74bfc1d1367db the function cli_get_params() ignores it

      I'm not sure why was this change needed

            marina Marina Glancy
            marina Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 5 minutes
                2h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.