Class: Ppl::Command::Nick
- Inherits:
-
Attribute
- Object
- Application::Command
- Attribute
- Ppl::Command::Nick
- Defined in:
- lib/ppl/command/nick.rb
Instance Attribute Summary
Attributes inherited from Attribute
#attribute, #list_format, #show_format
Attributes inherited from Application::Command
Instance Method Summary collapse
-
#initialize ⇒ Nick
constructor
A new instance of Nick.
- #options(parser, options) ⇒ Object
Methods inherited from Attribute
Methods inherited from Application::Command
Constructor Details
#initialize ⇒ Nick
Returns a new instance of Nick.
6 7 8 |
# File 'lib/ppl/command/nick.rb', line 6 def initialize @attribute = :nicknames end |
Instance Method Details
#options(parser, options) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/ppl/command/nick.rb', line 10 def (parser, ) parser. = "usage: ppl nick <contact> [<nickname>]" parser.on("-d", "--delete", "delete nickname") do [:delete] = true end parser.on("--no-color", "turn off colored output") do [:no_color] = true end end |