Assume that I have a script that can be run in either of the following ways.
./foo arg1 arg2 ./foo
Is there a generally accepted way to denote
Yes, the square brackets indicate optional arguments in Unix man pages.
From "man man":
[-abc] any or all arguments within [ ] are optional.