Detect misuse in keys > decode command
Issue To Be Solved
Error messages output when using flow keys decode ... are unclear, leading to misuse of the command
(Optional): Suggest A Solution
@turbolent suggested we could detect if a given input doesn't start with what it should. For instance, in the case of a pem, if the input doesn't begin with -----BEGIN, it is malformed and the user can be informed that they are likely not using the correct input.
Personally, I think that detecting when an input looks like a file, but the --from-file flag wasn't given, the cli should ask if the user meant to include --from-file
(Optional): Context
Someone in the flow discord wasn't sure how to use this command, they were missing a flag
I think detecting input is very good, even we can check if it is filename. Also probably stdin support would be good idea.