Search code examples
nant

Learning NAnt - what does [+|-] in the help mean?


If I type nant -help I receive help information about the various command-line options.

Some, such as find have a suffix of [+|-], e.g.

-find[+|-]                     Search parent directories for build file

What does the [+|-] mean?


Solution

  • In command line options syntax, sometimes [...] is used to denote optional items, and | is used to denote alternate. So it looks like there are 3 different variations here:

    -find
    -find+
    -find-
    

    The documentation should clarify what each of these variation means.

    See also

    • Forum post

      ... -find+ looks for nant.build traversing back up the folder structure