From 9df6828a815f72b76d0b186ee9b2abefc5c99b45 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 3 Nov 2014 17:57:44 -0800 Subject: [PATCH] Convention: Hide headings with first -q --- commands/buy_cmd.py | 2 +- commands/local_cmd.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/buy_cmd.py b/commands/buy_cmd.py index 96a26696..f851ac4f 100644 --- a/commands/buy_cmd.py +++ b/commands/buy_cmd.py @@ -153,7 +153,7 @@ def render(results, cmdenv, tdb): stnRowFmt.addColumn('Dist', '>', 6, '.2f', key=lambda row: row.dist) - if cmdenv.detail: + if not cmdenv.quiet: heading, underline = stnRowFmt.heading() print(heading, underline, sep='\n') diff --git a/commands/local_cmd.py b/commands/local_cmd.py index abfe6295..25e7aab0 100644 --- a/commands/local_cmd.py +++ b/commands/local_cmd.py @@ -171,7 +171,7 @@ def render(results, cmdenv, tdb): ly=results.summary.ly, ) - if cmdenv.detail: + if not cmdenv.quiet: heading, underline = sysRowFmt.heading() print(heading, underline, sep='\n') @@ -179,3 +179,4 @@ def render(results, cmdenv, tdb): print(sysRowFmt.format(row)) for stnRow in row.stations: print(stnRowFmt.format(stnRow)) +