Skip to content

Conversation

mknos
Copy link
Contributor

@mknos mknos commented Feb 26, 2024

  • This version of primes takes 0, 1 or 2 arguments
  • 0 args: read Start from standard input and use default End
  • 1 arg: Start is arg1 and End is default
  • 2 args: explicit Start and End
  • This patch is compatible with NetBSD, which prints usage if >2 args are given

* This version of primes takes 0, 1 or 2 arguments
* 0 args: read Start from standard input and use default End
* 1 arg: Start is arg1 and End is default
* 2 args: explicit Start and End
* This patch is compatible with NetBSD, which prints usage if >2 args are given
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: primes The primes program labels Feb 26, 2024
@briandfoy briandfoy merged commit d54d511 into briandfoy:master Feb 29, 2024
@briandfoy briandfoy added Status: accepted The fix is accepted and removed Priority: low get to this whenever labels Feb 29, 2024
@briandfoy briandfoy self-assigned this Feb 29, 2024
@briandfoy
Copy link
Owner

changes: fail for too many arguments

@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Program: primes The primes program Status: released there is a new release with this fix Type: enhancement improve a feature that already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants