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

Add a DSL for the plus option parser #42

Open
rfdonnelly opened this issue Jan 12, 2017 · 0 comments
Open

Add a DSL for the plus option parser #42

rfdonnelly opened this issue Jan 12, 2017 · 0 comments
Assignees

Comments

@rfdonnelly
Copy link
Owner

rfdonnelly commented Jan 12, 2017

options = parse_plus_options(plus_options) do
  name "command"
  synopsis "command [options]"
  description <<-EOF
    Multi-line
    description
  EOF

  option :option1 do
    description "This is the first option."
    default "default-value"
  end

  option :option_two do
    description "This is option two."
    default 5
  end

  extra <<-EOF
    Multi-line
    extra
  EOF
end
@rfdonnelly rfdonnelly self-assigned this Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant