docs/External-Commands: fix spelling.
Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
parent
5772ba12b4
commit
e9b668df35
@ -60,7 +60,7 @@ To easily use Homebrew's argument parser, replicate the Ruby template below for
|
|||||||
|
|
||||||
- The class name should be the command name in CamelCase (e.g. `my-cmd` should be named `MyCmd`).
|
- The class name should be the command name in CamelCase (e.g. `my-cmd` should be named `MyCmd`).
|
||||||
- Provide a `cmd_args` block that describes the command and its arguments.
|
- Provide a `cmd_args` block that describes the command and its arguments.
|
||||||
- Implement the `run` method, which will be invoked when the command is executed. Within the `run` method, the parsed arguments are available asusing `args`.
|
- Implement the `run` method, which will be invoked when the command is executed. Within the `run` method, the parsed arguments are available using `args`.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user