Skip to content

Commit

Permalink
Apply code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Feb 23, 2024
1 parent c50c8f3 commit 3a19f8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ Once you no longer need a command, you can remove it with …
kirby remove:command hello
```

If you have a local and a global command, you can choose which one to delete.

## Debugging

Use the `-d` or `--debug` argument to run the command in debug mode:
Expand All @@ -145,8 +147,6 @@ Use the `-d` or `--debug` argument to run the command in debug mode:
kirby make:command hello --debug
```

If you have a local and a global command, you can choose which one to delete.

## Formatting Output

Sending messages to the terminal is super easy.
Expand Down
20 changes: 10 additions & 10 deletions src/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,6 @@ public function run(?string $name = null, ...$args): void
]
]);

// add help argument
$this->climate->arguments->add([
'help' => [
'description' => 'Prints a usage statement',
'prefix' => 'h',
'longPrefix' => 'help',
'noValue' => true
]
]);

// add debug argument
$this->climate->arguments->add([
'debug' => [
Expand All @@ -521,6 +511,16 @@ public function run(?string $name = null, ...$args): void
]
]);

// add help argument
$this->climate->arguments->add([
'help' => [
'description' => 'Prints a usage statement',
'prefix' => 'h',
'longPrefix' => 'help',
'noValue' => true
]
]);

// build the args array
$argv = [
'kirby',
Expand Down

0 comments on commit 3a19f8d

Please sign in to comment.