PTC MKS Toolkit Knowledge Base

Product:MKS Toolkit (All)
Keywords:more, man, too many arguments
Category:Utilities/Knowledge Base

I get a "Too many arguments in command line" error when using man?

When I type man <command> I get:

    Too many arguments in command line.

The error is most likely occurring because the man is finding another version of the more command in your PATH before the MKS Toolkit version. To fix this make sure the $ROOTDIR/mksnt directory is at the start of your PATH environment variable or if that is not acceptable make sure it is before the directory containing the conflicting more utility.

Typing which more at the command-line will tell you which version of the more is found first in your PATH.

Alternatively, you can set the MANPAGER environment variable so man won’t search the path for more:

    MANPAGER=c:/mks/mksnt/more.exe -A -s