Would it be possible to add an output to {CMDACTION} when the currently executing command was called as a subcommand? The current functionality seems to return the command action for the root command. Let's use 2 commands as an example:
Command: Test1, executed by pressing "Enter" key
Begin Text Compare : [{CMDISSUBCOMMAND}] Equals '1'
Write '[Blue] Test1 Type = Subcommand' to log
Else
Write '[Blue] Test1 Type = Not a Subcommand' to log
End Condition
Write '[Blue] Test1 Action = {CMDACTION}' to log
Execute command, 'Test2' (and wait until it completes)
Command: Test2Begin Text Compare : [{CMDISSUBCOMMAND}] Equals '1'
Write '[Blue] Test2 Type = Subcommand' to log
Else
Write '[Blue] Test2 Type = Not a Subcommand' to log
End Condition
Write '[Blue] Test2 Action = {CMDACTION}' to log
After pressing "Enter" the current functionality yields:
Test1 Type = Not a Subcommand
Test1 Action = Keyboard
Test2 Type = Subcommand
Test2 Action = Keyboard
The desired functionality would yield:
Test1 Type = Not a Subcommand
Test1 Action = Keyboard
Test2 Type = Subcommand
Test2 Action = Subcommand (or some other designation)
I suppose this type of output could be currently accomplished by:
Begin Text Compare : [{CMDISSUBCOMMAND}] Equals '1'
Write '[Blue] Command Action = Subcommand' to log
Else
Write '[Blue] Command Action = {CMDACTION}' to log
End Condition
...but I feel like a 'Subcommand' (or similar) output for {CMDACTION} would be in keeping with the definition of the token: "The method by which the current command was executed." Thanks!