Ace3

Addons
7,686,034 Downloads Last Updated: Aug 12, 2019 Game Version: 8.2.0

AceConsole should support conditional syntax

#252 By  Turducken_McNugget

Created May 26, 2011 Updated Jun 19, 2011

Open
Assigned to  nevcairiel
New
Enhancment

What is the enhancement in mind? How should it look and feel?
The basic idea would be that AceConsole would run the input to a registered chat command through SecureCmdOptionParse first (and then probably only if GetRunningMacro is not nil) before passing the input onto the addons command handler.  This would allow users of ace addons to build macros that use conditional text to choose between options and expect them to work.

Please provide any additional information below.
A user recently asked if they could call my addon in a macro like "/addon [button:2] ThisOption; ThatOption".  I gave them a script macro that would do the same thing, but then thought about SecureCmdOptionParse which I had only recently noticed.  I can add this logic to my own addons registered command line handler, but it seems like it might be something worth building into the ace framework.  It seems to me quite natural that users will experiment in trying to call addons this way while individual addon developers may not think of the scenario or may not know about SecureCmdOptionParse.

Turducken_McNugget   added the tags
New
Enhancment
  May 26, 2011
Jun 19, 2011

I'm liking this personally... Not doing anything just yet - want to hear from others.


To post a comment, please login or register a new account.