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

Use constants instead of literals in arg parser #504

Merged
merged 1 commit into from
Nov 1, 2019
Merged

Conversation

casey
Copy link
Owner

@casey casey commented Nov 1, 2019

  • Differentiate between args, which are flags and options, and cmds,
    which are exclusive subcommands

  • Replace string literals, like "EVALUATE", with constants, like
    cmd::EVALUATE, since they're slightly less error prone.

  • Remove Config::evaluate bool, handle like other subcommands

- Differentiate between `arg`s, which are flags and options, and `cmd`s,
  which are exclusive subcommands

- Replace string literals, like "EVALUATE", with constants, like
  `cmd::EVALUATE`, since they're slightly less error prone.

- Remove `Config::evaluate`, and handle it like other subcommands
@casey casey merged commit 48b25c1 into master Nov 1, 2019
@casey casey deleted the arg-evaluate branch November 1, 2019 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant