An error or critical warning indicating "Too many positional options" is received when sourcing a Tcl file, running a Tcl command from the Tcl console, or when an XDC constraint file is being parsed.
The error can be seen after copying commands from Vivado documentation (PDF files) opened from the Xilinx Documentation Navigator (DocNav).
I can source a Tcl script which contains commands that all work without error from the Tcl console.
However, sourcing the file results in the following errors:
Critical Warning: [Common 17-165] Too many positional options when parsing '<constraint>.xdc', please type '<command> -help' for usage info. ["XX.xdc":198]
ERROR: [Common 17-165] Too may positional options when parsing 'file', please type '<command> -help' for usage info.
What does this error mean? How can I resolve it?