-
Notifications
You must be signed in to change notification settings - Fork 217
Update exterminate script and documentation #1489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
pre-commit.ci autofix |
needs changelog |
Thanks I’ll do this in about eight hours once I get out of work. |
I do not know exactly how to successfully add a changelog.txt so I'm going to add it here in the description of what I believe needs to bee added in this changelog.txt. exterminate: now accepts a "-c" argument which targets only children. Case sensitive. |
}, {...} | ||
|
||
local positionals = argparse.processArgsGetopt(args, { | ||
{'h', 'help', handler = function() options.help = true end}, | ||
{'m', 'method', handler = function(arg) options.method = killMethod[arg:upper()] end, hasArg = true}, | ||
{'o', 'only-visible', handler = function() options.only_visible = true end}, | ||
{'f', 'include-friendly', handler = function() options.include_friendly = true end}, | ||
{'c', 'children-only', handler = function() options.children_only = true end}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer that if you're going to add "children-only" you should also add "adult-only" just for parallelism
also, this won't kill babies. is this intended? should it kill babies? if not, should it offer a "baby-only" option?
Please update exterminate to add a -c flag that targets only child units. I plan to build a timer-based script to run this so poults don’t wander off and put dwarven children at risk.
Argument parsing: adds -c alongside existing flags.
-c purpose: target children only.
Example:
exterminate -f -c bird_turkey -m knockout
[edit Aug/09/2025]
I do not know exactly how to successfully add a changelog.txt so I'm going to add it here in the description of what I believe needs to bee added in this changelog.txt.