Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed default value for api-name parameter #123

Merged
merged 1 commit into from May 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/apiary/cli.rb
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
@@ -1,3 +1,3 @@
module Apiary
VERSION = "0.4.1"
VERSION = "0.4.2"
end