We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55ae897 commit 7ce020bCopy full SHA for 7ce020b
4 files changed
system/HTTP/CLIRequest.php
@@ -124,6 +124,18 @@ public function getOptions(): array
124
125
//--------------------------------------------------------------------
126
127
+ /**
128
+ * Returns the path segments.
129
+ *
130
+ * @return array
131
+ */
132
+ public function getSegments(): array
133
+ {
134
+ return $this->segments;
135
+ }
136
+
137
+ //--------------------------------------------------------------------
138
139
/**
140
* Returns the value for a single CLI option that was passed in.
141
*
@@ -178,7 +190,7 @@ public function getOptionString(): string
178
190
$out .= "-{$name} $value ";
179
191
}
180
192
181
- return $out;
193
+ return trim($out);
182
194
183
195
184
196
0 commit comments