File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,24 @@ justice
22=======
33
44.. dfhack-tool ::
5- :summary: Commands related to the justice system
5+ :summary: Commands related to the justice system.
66 :tags: fort armok units
77
88This tool allows control over aspects of the justice system, such as the
99ability to pardon criminals.
1010
11- usage
11+ Usage
1212-----
1313
1414::
1515 justice pardon [--unit <id>]
1616
17- Pardon the selected unit or the one specified by unit id if provided. Currently
18- only applies to prison time and doesn't cancel beatings or hammerings.
17+ Pardon the selected unit or the one specified by unit id (if provided).
18+ Currently only applies to prison time and doesn't cancel beatings or
19+ hammerings.
1920
2021
21- options
22+ Options
2223-------
2324
2425``-u ``, ``--unit <id> ``
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ local command = positionals[1]
3535
3636if command == " pardon" then
3737 command_pardon (unit_id )
38+ elseif not command then
39+ qerror (' Missing command' )
40+ else
41+ qerror ((" Unrecognised command: %s" ):format (command ))
3842end
39-
40- qerror ((" Unrecognised command: %s" ):format (command ))
You can’t perform that action at this time.
0 commit comments