Skip to content

Commit d8ae931

Browse files
committed
get rid of obsolete help text in spawnunit
1 parent 288b38c commit d8ae931

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

Diff for: spawnunit.lua

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
-- create unit at pointer or given location
22
-- wraps modtools/create-unit.lua
3-
local usage = [====[
4-
5-
spawnunit
6-
=========
7-
Provides a simpler interface to `modtools/create-unit`, for creating units.
8-
9-
Usage: ``spawnunit [-command] RACE CASTE [NAME] [x y z] [...]``
10-
11-
The ``-command`` flag prints the generated `modtools/create-unit` command
12-
instead of running it. ``RACE`` and ``CASTE`` specify the race and caste
13-
of the unit to be created. The name and coordinates of the unit are optional.
14-
Any further arguments are simply passed on to `modtools/create-unit`.
15-
16-
]====]
173

184
local guidm = require('gui.dwarfmode')
195
local utils = require('utils')
@@ -28,7 +14,7 @@ local show_command = false
2814
local args = {...}
2915
local first_arg = (args[1] or ''):gsub('^-*', '')
3016
if first_arg == 'help' or #args < 2 then
31-
print(usage)
17+
print(dfhack.script_help())
3218
return
3319
elseif first_arg == 'command' then
3420
show_command = true

0 commit comments

Comments
 (0)