array(
'non-interactive' => false,
'allow-unstable' => false,
- 'help' => false
+ 'help' => false,
+ 'lang' => 'en'
),
array(
'h' => 'help'
)
);
+global $SESSION;
+if ($options['lang']) {
+ $SESSION->lang = $options['lang'];
+} else {
+ $SESSION->lang = 'en';
+}
+
$interactive = empty($options['non-interactive']);
if ($unrecognized) {
--non-interactive No interactive questions or confirmations
--allow-unstable Upgrade even if the version is not marked as stable yet,
required in non-interactive mode.
+--lang=CODE Set preferred language for CLI output, during upgrade process (default:en).
-h, --help Print out this help
Example: