Skip to content

Commit

Permalink
remove obsolete help text
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Nov 11, 2024
1 parent b5629a9 commit 6050ded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
23 changes: 1 addition & 22 deletions geld.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
-- Gelds or ungelds animals
-- Written by Josh Cooper(cppcooper) on 2019-12-10, last modified: 2020-02-23

utils = require('utils')

local validArgs = utils.invert({
Expand All @@ -11,29 +8,11 @@ local validArgs = utils.invert({
'find',
})
local args = utils.processArgs({...}, validArgs)
local help = [====[
geld
====
Geld allows the user to geld and ungeld animals.
Valid options:
``-unit <id>``: Gelds the unit with the specified ID.
This is optional; if not specified, the selected unit is used instead.
``-ungeld``: Ungelds the specified unit instead (see also `ungeld`).
``-toggle``: Toggles the gelded status of the specified unit.
``-help``: Shows this help information
]====]

unit=nil

if args.help then
print(help)
print(dfhack.script_help())
return
end

Expand Down
19 changes: 2 additions & 17 deletions ungeld.lua
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
-- Ungelds animals
-- Written by Josh Cooper(cppcooper) on 2019-12-10, last modified: 2020-02-23
utils = require('utils')

local validArgs = utils.invert({
'unit',
'help',
})
local args = utils.processArgs({...}, validArgs)
local help = [====[
ungeld
======
A wrapper around `geld` that ungelds the specified animal.
Valid options:
``-unit <id>``: Ungelds the unit with the specified ID.
This is optional; if not specified, the selected unit is used instead.
``-help``: Shows this help information
]====]

if args.help then
print(help)
print(dfhack.script_help())
return
end

Expand Down

0 comments on commit 6050ded

Please sign in to comment.