Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

param

(This command has been awarded a Yubnub Golden Egg)

http://jonathanaquino.com/yubscripts/abbreviate/param.php?input=%s&xn_auth=no
NAME
    param - Builds a YubNub parameter string.

SYNOPSIS
    param [PARAMETER1;PARAMETER2;...] [VALUE1;VALUE2;...]

EXAMPLES
    param find;replace;string pizza;hot dogs;I like pizza.
        (returns: -find pizza -replace hot dogs -string I like pizza.)

    param s;method hello;rot-13
        (returns: hello world -method rot-13)

DESCRIPTION
    This command accepts a string of parameter names and parameter values (seperated by
    semicolons) and returns a parameter string as it would need to be typed into YubNub.

    For instance, this command:
        param find;replace;string pizza;hot dogs;I like pizza.

    returns:
        -find pizza -replace hot dogs -string I like pizza.

    Why would you do this? To build abbreviated aliases of commands. Check out the url of
    'strRep', an alias of strReplace:
        strreplace {param find;replace;string %s}[no url encoding]

    To execute 'strRep' you type:
        strRep pizza;hot dogs;I like pizza.

    Look Ma! No parameters!

    To include a %s parameter, enter an "s" as the first parameter in the list. For example,
    a string for the 'change' command:
        param s;method hello;rot-13 (returns "hello world -method rot-13")

    It appears that aliases built with 'param' work best if they use [no url encoding].

    Don't include the "-" in the parameter names.


NOTES
    The main reason I made this was so people could write fleshed out commands with
    parameters (which are easy to understand), but also have a easy way to shorten the commands
    for easy typing.

    This is a sister command of 'abv'. They both exist to do just about the same thing. 'Param'
    is probably much more stable and reliable, particularly when nested.

AUTHOR
    Allen Ormond - aormond (at) gmail (dot) com
    
2480 uses - Created 2006-03-31 01:25:44 - Last used 2016-01-12 07:58:00
Is this command broken? Tell Jon if you know how to fix it.