Skip to content
Snippets Groups Projects
Commit 964efa9c authored by Myron Turner's avatar Myron Turner
Browse files

using $options->getCmd to retrieve show-pages parameter

parent d63d2c63
No related branches found
No related tags found
No related merge requests found
...@@ -44,14 +44,15 @@ class WantedPagesCLI extends DokuCLI { ...@@ -44,14 +44,15 @@ class WantedPagesCLI extends DokuCLI {
* @return void * @return void
*/ */
protected function main(DokuCLI_Options $options) { protected function main(DokuCLI_Options $options) {
global $argc, $argv;
if($options->args) { if($options->args) {
$startdir = dirname(wikiFN($options->args[0].':xxx')); $startdir = dirname(wikiFN($options->args[0].':xxx'));
} else { } else {
$startdir = dirname(wikiFN('xxx')); $startdir = dirname(wikiFN('xxx'));
} }
if($argv[1] == 'show-pages' || $argv[2] == 'show-pages') {
$cmd = $options->getCmd();
if($cmd == 'show-pages') {
$this->show_pages = true; $this->show_pages = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment