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

Better syntax #1

Open
RobertDober opened this issue Jan 23, 2019 · 0 comments
Open

Better syntax #1

RobertDober opened this issue Jan 23, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@RobertDober
Copy link
Owner

RobertDober commented Jan 23, 2019

Now:

     option :version, :integer, 42

Then

     option :version, :integer, default: 42

Now:

     option :version, :integer, nil, :required

Then

     option :version, :integer, required: true

Now

   option :elixir, :boolean, :group, :language
   option :erlang, :boolean, :group, :language
   group_option :all, for: :language

Then

  option_group :languages do
    option :elixir # boolean is implicit
    option :erlang
    # a set them all option named `--all-languages` will be created automatically
  end
@RobertDober RobertDober self-assigned this Jan 23, 2019
@RobertDober RobertDober added the enhancement New feature or request label Jan 23, 2019
@RobertDober RobertDober added this to the v0.2.0 milestone Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant