From 35c7d4fa839a308b33580a47b4e8a9ea877cf4eb Mon Sep 17 00:00:00 2001 From: Ladislav Prskavec Date: Sun, 12 Oct 2014 18:37:26 -0700 Subject: [PATCH] Update help for fetch command --- README.md | 2 +- lib/apiary/cli.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a4fa56..62632a7 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ machine, either using static files or using a standalone web server... publish --api-name [API_NAME] \ --message [COMMIT_MESSAGE] Publish with custom commit message fetch --api-name [API_NAME] Fetch apiary.apib from API_NAME.apiary.io - + --output [FILE] Write apiary.apib into specified file help Show this help version Show version diff --git a/lib/apiary/cli.rb b/lib/apiary/cli.rb index 3f37cf0..d0c00b1 100644 --- a/lib/apiary/cli.rb +++ b/lib/apiary/cli.rb @@ -9,6 +9,8 @@ class CLI < Thor desc "fetch", "Fetch apiary.apib from API_NAME.apiary.io" method_option :api_name, :type => :string, :required => true, :default => '' + method_option :api_host, :type => :string, :banner => "HOST", :desc => "Specify apiary host" + method_option :output, :type => :string, :banner => "FILE", :desc => "Write apiary.apib into specified file" def fetch cmd = Apiary::Command::Fetch.new options