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

feat: parse CLI args using getopt #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cybardev
Copy link
Owner

@cybardev cybardev commented Jan 7, 2024

Description

Currently the script uses very basic pattern matching to parse command-line arguments. We want to use getopt instead.

Changes Requested

  • use getopt to parse command-line arguments

Tests

  • ran with no args
  • ran with -h flag
  • ran with --help flag
  • ran with short flag for each animal
    • ran with each eye option
  • ran with long flag for each animal
    • ran with each eye option

Reviewers

  • N/A

@cybardev cybardev linked an issue Jan 7, 2024 that may be closed by this pull request
@cybardev cybardev self-assigned this Jan 7, 2024
@cybardev cybardev added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: use getopt to parse command-line arguments
1 participant