Score:-4

Command definition syntax

us flag

What is the name and where I can find info about syntax that defines commands:

cmake [{-D <var>=<value>}...] -P <cmake-script-file> [-- <unparsed-options>...]

What does [] , {} and ... means in this definition. I have feeling, that [] means optinal, but this means that -P should persist always?

N0rbert avatar
zw flag
http://manpages.ubuntu.com/manpages/focal/en/man1/cmake.1.html
us flag
I know where is location of cmake manual. I found this type of command definition in other commands and would like to get more info on definition language itself.
Score:0
it flag

In general, [ ] means "optional". In this case { } is used to group the "-D" with the following "<var>=<value>". The following "..." means the "-D <var>=<value>" can be repeated 0 or many times. The "-P <cmake-script-file>" is NOT optional.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.