Skip to content

Commit

Permalink
Merge pull request #123 from apiaryio/freaz/publish-api-name-required
Browse files Browse the repository at this point in the history
Removed default value for api-name parameter
  • Loading branch information
abtris committed May 11, 2016
2 parents 98066ae + cf94326 commit 2fe4a2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/apiary/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Apiary
class CLI < Thor

desc 'fetch', 'Fetch API Description Document from API_NAME.apiary.io'
method_option :api_name, :type => :string, :required => true, :default => ''
method_option :api_name, :type => :string, :required => true
method_option :api_host, :type => :string, :banner => 'HOST', :desc => 'Specify apiary host'
method_option :output, :type => :string, :banner => 'FILE', :desc => 'Write API Description Document into specified file'

Expand All @@ -35,7 +35,7 @@ def preview
method_option :message, :type => :string, :banner => 'COMMIT_MESSAGE', :desc => 'Publish with custom commit message'
method_option :path, :type => :string, :desc => 'Specify path to API Description Document. When given a directory, it will look for apiary.apib or swagger.yaml file'
method_option :api_host, :type => :string, :banner => 'HOST', :desc => 'Specify apiary host'
method_option :api_name, :type => :string, :required => true, :default => ''
method_option :api_name, :type => :string, :required => true

def publish
cmd = Apiary::Command::Publish.new options
Expand Down
2 changes: 1 addition & 1 deletion lib/apiary/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Apiary
VERSION = "0.4.1"
VERSION = "0.4.2"
end

0 comments on commit 2fe4a2f

Please sign in to comment.