From 1e0661c37bf40189c91e935811296b9919804075 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 11 Feb 2013 16:38:18 -0500 Subject: Added command line switches for running Lua code on startup. --- doc/10_Advanced.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/10_Advanced.md') diff --git a/doc/10_Advanced.md b/doc/10_Advanced.md index a54f7145..5ac24594 100644 --- a/doc/10_Advanced.md +++ b/doc/10_Advanced.md @@ -10,7 +10,8 @@ For available commands, see the [Lua API][]. Abbreviated commands for [`buffer`][], [`view`][] and [`gui`][] are available: the command `buffer:append_text('foo')` can be shortened to `append_text('foo')`. Therefore, use `_G.print()` for Lua's `print()` since [`gui.print()`][] is shortened to -`print()`. +`print()`. You can also run commands on startup using the `-e` and `--execute` +command line switches. ![Command Entry](images/commandentry.png) -- cgit v1.2.3