So, I'm writing a CLI for an API, and I ran into a point where one of the commands support
has two optional arguments, id
and fields
I want to know how to show that these arguments are optional, BUT, you have to supply at least ONE of them, or even both. I'm not sure how to word the Google search, so I haven't been able to turn anything up. My best guess is something like Usage: support [id=...]||[fields=...]
but I'd like to know the standard.
<id=|fields=>
. – jordanm May 29 '14 at 16:14|
implies either, but not both, right..? – Christopher Wirt May 29 '14 at 17:29<[id=…] [fields=…]>
. Both can happen, and though neither must happen, there is an implication that something is required. – HalosGhost May 29 '14 at 20:50field_id
which you explain in the details. – jw013 May 30 '14 at 01:18