On a Linux system it is typical to type progname --help
in order to view the help output for that program. After this you will see a description like: progname [SWITCHES] [FILES]... [ETC]
My question is; is there a standardized syntax for his sort of (command-line use) documentation?
In order to describe things like optional switches, multiple parameters (like a file list), switch patterns, etc. It seems like there would be a standard so that anyone who knows it, could accurately interpret your documentation.
Thanks.
Note: This is purely about writing my own documentation, not parsing arguments.