Sha256: 17babff5421ed63bcf48a5d9fd299d5cc94e3472212ab456ebe01f66bbb72aab

Contents?: true

Size: 726 Bytes

Versions: 2

Compression:

Stored size: 726 Bytes

Contents

# -*- encoding : utf-8 -*-

class Phrase::Tool::Commands::ShowHelp < Phrase::Tool::Commands::Base
  def initialize(options, args)
    super(options, args)
  end
  
  def execute!
    show_help
  end
  
private
  
  def show_help
    print_message <<USAGE
usage: phrase <command> [<args>]

  phrase init --secret=<YOUR SECRET> --default-locale=<DEFAULT LOCALE, e.g. en> --default-format=<FORMAT, e.g. yml> --default-target=<TARGET, default is ./phrase/locales/>

  phrase push FILE [--tags=<tags>] [--locale=<locale>]
  phrase push DIRECTORY [--tags=<tags>] [--locale=<locale>]

  phrase pull [LOCALE] [--target=<target-folder>] [--format=<format>] [--tag=<tag>]

  phrase tags [-l, --list]

  phrase --version
USAGE
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phrase-0.4.8 lib/phrase/tool/commands/show_help.rb
phrase-0.4.7 lib/phrase/tool/commands/show_help.rb