aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-02-11 16:38:18 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-02-11 16:38:18 -0500
commit1e0661c37bf40189c91e935811296b9919804075 (patch)
tree34e4c96afc9af8d86f51c564ec7c76666095ef0e /doc
parent8e45692099dd22635bb06764ef281e858784565f (diff)
downloadtextadept-1e0661c37bf40189c91e935811296b9919804075.tar.gz
textadept-1e0661c37bf40189c91e935811296b9919804075.zip
Added command line switches for running Lua code on startup.
Diffstat (limited to 'doc')
-rw-r--r--doc/10_Advanced.md3
-rw-r--r--doc/13_Help.md2
2 files changed, 4 insertions, 1 deletions
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)
diff --git a/doc/13_Help.md b/doc/13_Help.md
index f2c3dedc..673c2759 100644
--- a/doc/13_Help.md
+++ b/doc/13_Help.md
@@ -7,6 +7,7 @@ parameters.
Switch |Arguments|Description
-------------------|:-------:|-----------
+`-e`, `--execute` | 1 |Run Lua [code][].
`-f`, `--force` | 0 |Forces [unique instance][].
`-h`, `--help` | 0 |Shows this.
`-n`, `--nosession`| 0 |No [session][] functionality.
@@ -15,6 +16,7 @@ Switch |Arguments|Description
The help switch is unavailable in ncurses.
+[code]: 10_Advanced.html#Command.Entry
[unique instance]: 02_Installation.html#Single.Instance
[session]: 04_WorkingWithFiles.html#Sessions
[`_USERHOME`]: api/_G.html#_USERHOME