Sublime Forum

Passing arguments in subl

#1

Hi all.

The subl command can execute commands via the option
–command
and this works ok for user-defined commands.
For instance, I defined a command
class MyExperimentCommand(sublime_plugin.TextCommand):
… command body …
and if I run from the command line
subl --command my_experiment
the command gets executed correctly on the active view.

Now my question: is there a way to pass arguments to
my_experiment from the command line? I mean, besides
writing a temporary file and let my_command read it,
which is ugly and slow?

Thank you for any help

0 Likes