Hello.
I want to get an alias working both with and without an argument.
If I have "blah *" as my alias, then typing blah whoever works fine. But of course blah on it's own doesn't.
If I have "blah*" instead, then typing blah on it's own works fine, but blah whoever ends up with an extra space between the command and the whoever, as the space is counted as part of the argument. This causes problems on my mud.
Is there any way I can make an alias that will work both with and without an argument passed to it? Essentially it's for stuff like heal aliases, where I want to 'cast heal person' if there's an argument, or just 'cast heal' if there isn't (which would heal myself).
I want to get an alias working both with and without an argument.
If I have "blah *" as my alias, then typing blah whoever works fine. But of course blah on it's own doesn't.
If I have "blah*" instead, then typing blah on it's own works fine, but blah whoever ends up with an extra space between the command and the whoever, as the space is counted as part of the argument. This causes problems on my mud.
Is there any way I can make an alias that will work both with and without an argument passed to it? Essentially it's for stuff like heal aliases, where I want to 'cast heal person' if there's an argument, or just 'cast heal' if there isn't (which would heal myself).