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

Glithch when assigning nil as default value. #6

Open
leandrosardi opened this issue Jun 3, 2022 · 0 comments
Open

Glithch when assigning nil as default value. #6

leandrosardi opened this issue Jun 3, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leandrosardi
Copy link
Owner

This code:

parser = BlackStack::SimpleCommandLineParser.new(
  :description => 'This command will launch a Sinatra-based BlackStack webserver.', 
  :configuration => [{
    :name=>'ssh_password', 
    :mandatory=>false, 
    :description=>'Password to login the node via remote SSH. Either ssh_password or ssh_private_key_file must be specified.', 
    :type=>BlackStack::SimpleCommandLineParser::STRING,
    :default => nil,
  }]
)

Gets this error:

Type mismatch for the default value of ssh_password.

This other code has the same problem:

parser = BlackStack::SimpleCommandLineParser.new(
  :description => 'This command will launch a Sinatra-based BlackStack webserver.', 
  :configuration => [{
    :name=>'ssh_password', 
    :mandatory=>false, 
    :description=>'Password to login the node via remote SSH. Either ssh_password or ssh_private_key_file must be specified.', 
    :type=>BlackStack::SimpleCommandLineParser::STRING,
    :default => '',
  }]
)
@leandrosardi leandrosardi added the bug Something isn't working label Jun 3, 2022
@leandrosardi leandrosardi self-assigned this Jun 3, 2022
@leandrosardi leandrosardi changed the title Glithch when assigning nil as default balue. Glithch when assigning nil as default value. Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant