aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/cli.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cli.php')
-rw-r--r--inc/cli.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cli.php b/inc/cli.php
index e64798386..cb4dabf04 100644
--- a/inc/cli.php
+++ b/inc/cli.php
@@ -402,13 +402,13 @@ class DokuCLI_Options {
}
// first non-option
- if($arg{0} != '-') {
+ if($arg[0] != '-') {
$non_opts = array_merge($non_opts, array_slice($this->args, $i));
break;
}
// long option
- if(strlen($arg) > 1 && $arg{1} == '-') {
+ if(strlen($arg) > 1 && $arg[1] == '-') {
list($opt, $val) = explode('=', substr($arg, 2), 2);
if(!isset($this->setup[$this->command]['opts'][$opt])) {