From 6050ded0568520792cf9e96cb758a23392a16184 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 10 Nov 2024 20:33:18 -0800 Subject: [PATCH] remove obsolete help text --- geld.lua | 23 +---------------------- ungeld.lua | 19 ++----------------- 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/geld.lua b/geld.lua index 690d6469df..ff50444494 100644 --- a/geld.lua +++ b/geld.lua @@ -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({ @@ -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 ``: 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 diff --git a/ungeld.lua b/ungeld.lua index b3736974d6..0ea29c2a4e 100644 --- a/ungeld.lua +++ b/ungeld.lua @@ -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 ``: 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