1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PLUGIN command?

Discussion in 'Support' started by vefatica, Dec 11, 2011.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    The help (console and CHM) for PLUGIN suggests that you can see the commands and functions (but not variables?) in a single plugin:

    Code:
    Usage : PLUGIN [/B plugin /C /F /I plugin /K /L plugin /P /U plugin /V]
    But it doesn't work. In fact, I don't really understand that line (above) from the help. It seems to be saying you can follow (or precede?) any option but "/V" with w plugin name.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    As with many commands, Rex is listing the options in alphabetical order. Three of them -- /B, /I, and /U -- may take a plugin name as an argument.

    (Later: And /L too, of course. Though the argument to /L should perhaps be called a 'filename' rather than a 'plugin' name.)
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    Well, the help seems to put /C and /F in the same category as /I, /K in the same category as /L, /P in the same category as /U, and /V dangling at the end. Alphabetical order or not, it doesn't make much sense to me (or coincide with how it actually works).
    Code:
    PLUGIN [/B plugin /C /F /I plugin /K /L plugin /P /U plugin /V]
     
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    Now I get it. The "|"s are missing. It means [/B plugin | /C | /F | /I plugin | /K | /L plugin | /P | /U plugin | /V].

    ECHO (for example) has them. ECHO [ON | OFF | message]

    DIR lumps options together. /BCDEFGH /JKLM /PQR /VWXZ

    (Making excuses now) It's easy to become confused.
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    ECHO can only take one type of argument, so the OR means something there. It wouldn't be possible to create an understandable command summary (certainly not in a line or two) with something like DIR or PLUGIN, that accept multiple options, with a few mutually exclusive ones. That's why there's the full help (tcmd.chm). The command line help is only there to remind you of options, not to display all possible variations of command syntax.
     

Share This Page