GNU coding standards contain a command line program section.
For perception of posixy, you should not only provide standard command-line options, both short and long, but also, if possible, stick to reading from standard input (or the command line) and writing to standard output, and only overriding the output with the option ( e.g. -o / --output ). This is what you can expect from most GNU command line tools.
source share