Sha256: 4f759cffc9f106c676f3c9d9547eb64e5935e079c91d3469be66cb2b04882444

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

class Ppl::Command::Nick < Ppl::Command::Attribute

  name        "nick"
  description "List, show or change nicknames"

  def initialize
    @attribute = :nicknames
  end

  def options(parser, options)
    parser.banner = "usage: ppl nick <contact> [<nickname>]"
    parser.on("-d", "--delete", "delete nickname") do
      options[:delete] = true
    end
    parser.on("--no-color", "turn off colored output") do
      options[:no_color] = true
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ppl-4.0.5 lib/ppl/command/nick.rb
ppl-4.0.3 lib/ppl/command/nick.rb
ppl-4.0.2 lib/ppl/command/nick.rb
ppl-4.0.1 lib/ppl/command/nick.rb
ppl-4.0.0 lib/ppl/command/nick.rb