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

fortune: fail for bad options #392

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

mknos
Copy link
Contributor

@mknos mknos commented Dec 29, 2023

  • Print usage and exit if an unknown option was entered, following OpenBSD version[1]
  • -h is not really an option
  • Mention -n option in usage string as done in SYNOPSIS
  • Document the purpose of -d flag in usage string and pod
  1. https://github.com/openbsd/src/blob/master/games/fortune/fortune/fortune.c#L304

* Print usage and exit if an unknown option was entered, following OpenBSD version[1]
* -h is not really an option
* Mention -n option in usage string as done in SYNOPSIS
* Document the purpose of -d flag in usage string and pod

1. https://github.com/openbsd/src/blob/master/games/fortune/fortune/fortune.c#L304
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: fortune The fortune program labels Dec 29, 2023
@briandfoy briandfoy self-assigned this Dec 29, 2023
@briandfoy
Copy link
Owner

Wow, fortune has an enhanced debugging mode. Never knew that.

@briandfoy briandfoy merged commit 0c1db82 into briandfoy:master Dec 29, 2023
2 checks passed
@briandfoy briandfoy added Status: accepted The fix is accepted and removed Priority: low get to this whenever labels Dec 29, 2023
@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Program: fortune The fortune 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