Last active
March 22, 2018 20:23
-
-
Save pruthvi6767/6867bc040ebf6ac463270b24351350b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CLI < Thor | |
desc 'auto', 'start' | |
method_option :user, | |
required: true, | |
desc: 'username', | |
aliases: '-u' | |
method_option :pwd, | |
aliases: '-p', | |
required: true, | |
desc: "password" | |
method_option :auth_token | |
aliases: '-t', | |
required: true, | |
desc: ' Auth Token' | |
method_option :addtag, | |
aliases: '-a', | |
required: true, | |
desc: 'Tag' | |
def auto | |
end | |
end | |
--------------------------------------------------- |
This fixed it
method_option :user,
required: true,
desc: 'username',
aliases: '-u'
method_option :pwd,
required: true,
aliases: '-p',
desc: "password"
&&&&
def auto
puts 'hello'
end
implementing the method solved it I believe..
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you post full stack trace errors in a file here?