TanmayPatil105 / procfetch

🎨 Yet another command-line system information utility written in C++
https://tanmaypatil105.github.io/procfetch/
GNU General Public License v3.0
23 stars 11 forks source link

Always check unknown argument #137

Closed youpong closed 1 year ago

youpong commented 1 year ago

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 commented 1 year ago

Great work!!