Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Always check unknown argument #137

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

youpong
Copy link
Collaborator

@youpong youpong commented Oct 26, 2023

If the -t and -v options were specified, no checks were made for unknown arguments.

For example, when an unknown argument X is specified after the option -t, ignore it.

$ procfetch -v X
0.2.1

This PR changes this to report unknown arguments as errors.

$ procfetch -v X
Error: procfetch: unknown argument: X

One advantage is that this simplifies the code.

@TanmayPatil105
Copy link
Owner

Great work!!

@TanmayPatil105 TanmayPatil105 merged commit aefc73d into TanmayPatil105:main Oct 26, 2023
@youpong youpong deleted the fix-optparse branch October 30, 2023 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants