Skip to content

Commit 35d2baf

Browse files
authored
Merge pull request #287 from myk002/myk_quiet
[quickfort] be more quiet when --quiet is passed
2 parents 12a1bb4 + bde0710 commit 35d2baf

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ that repo.
3737
- `quickfort`: now prints more helpful error messages for invalid modeline markers
3838
- `quickfort`: added support for extra space characters in blueprints
3939
- `quickfort`: now prints a warning when an invalid alias is encountered instead of silently ignoring it
40+
- `quickfort`: is now more quiet when the ``--quiet`` parameter is specified
4041
- `setfps`: improved error handling
4142

4243
# 0.47.05-r1

internal/quickfort/command.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ end
6363

6464
function finish_command(ctx, section_name, quiet)
6565
if ctx.command == 'orders' then quickfort_orders.create_orders(ctx) end
66-
print(string.format('%s successfully completed',
67-
quickfort_parse.format_command(
68-
ctx.command, ctx.blueprint_name, section_name)))
6966
if not quiet then
67+
print(string.format('%s successfully completed',
68+
quickfort_parse.format_command(
69+
ctx.command, ctx.blueprint_name, section_name)))
7070
for _,stat in pairs(ctx.stats) do
7171
if stat.always or stat.value > 0 then
7272
print(string.format(' %s: %d', stat.label, stat.value))

quickfort.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Usage:
6969
**<options>** can be zero or more of:
7070
7171
``-q``, ``--quiet``
72-
Don't report on what actions were taken (error messages are still shown).
72+
Suppress non-error console output.
7373
``-v``, ``--verbose``
7474
Output extra debugging information. This is especially useful if the
7575
blueprint isn't being applied like you expect.
@@ -191,7 +191,7 @@ undo Applies the inverse of the specified blueprint. Dig tiles are
191191
<options> can be zero or more of:
192192
193193
-q, --quiet
194-
Don't report on what actions were taken (error messages are still shown).
194+
Suppress non-error console output.
195195
-v, --verbose
196196
Output extra debugging information. This is especially useful if the
197197
blueprint isn't being applied like you expect.

0 commit comments

Comments
 (0)