Closed youpong closed 1 year ago
If the -t and -v options were specified, no checks were made for unknown arguments.
-t
-v
For example, when an unknown argument X is specified after the option -t, ignore it.
X
$ 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.
Great work!!
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.This PR changes this to report unknown arguments as errors.
One advantage is that this simplifies the code.