ITRS-Group / cordial

Cordial comprises a set of interrelated programs, integrations, libraries and packages for Geneos, principally written in Go.
Other
7 stars 0 forks source link

catch typos in type / name args and refuse to process #135

Open pgalbavy-itrs opened 1 year ago

pgalbavy-itrs commented 1 year ago

For commands that need args, check for typos in case something like 'gatewayx' is treated as a name etc.

pgalbavy-itrs commented 1 year ago

Best way to start would be to check len(params) in all commands that do not expect them (left over args) and to otherwise validate params in those commands that might use them

pgalbavy-itrs commented 1 year ago

Various commands where an implied wildcard doesn't seem useful have been updated to require "all" of no other names are given.

More work to do however.