Lines Matching refs:opts
165 $opts = getopt('h', [
176 if (isset($opts['h']) || isset($opts['help'])) {
190 if (!isset($opts['title'])) {
194 $entry->setTitle($opts['title']);
196 if (empty($opts['category'])) {
200 if (is_string($opts['category'])) {
201 $opts['category'] = [ $opts['category'] ];
203 foreach ($opts['category'] as $cat) {
207 if (empty($opts['conf-time'])) {
211 $t = strtotime($opts['conf-time']);
217 } elseif (!empty($opts['conf-time'])) {
222 $entry->setImage($opts['image-path'] ?? '', $opts['image-title'] ?? '', $opts['image-link'] ?? '');
224 if (isset($opts['content'])) {
225 if (isset($opts['content-file'])) {
229 $entry->setContent($opts['content']);
230 } elseif (isset($opts['content-file'])) {
231 if ($opts['content-file'] === '-') {
234 $entry->setContent(file_get_contents($opts['content-file']));