My script can be called like this:
myScript -a some_name
myScript -a all
myScript -b some_name
myScript -b all
myScript -c
How do I write its usage notes? I know []
mean optional arguments and |
means alternative but in my case I would need nested alternative, something like:
usage myScript (-a some_name | all) | (-b some_name | all) | -c
Now I don't think I can use ()
for this purpose so how else can I write this? Do I have to write it in multiple lines instead or is there a better way?
myScript -a some_name | all
myScript -b some_name | all
myScript -c
I mean this would still be ok in my case but if I had more nested alternatives it would get really verbose.
Also is there any exhaustive source describing the standard unix/linux usage notes?