This is a good, open-source resource for guidelines on creating CLIs, which goes over some common mistakes.
https://clig.dev/