Skip to content

Commit

Permalink
Convention: Hide headings with first -q
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Nov 4, 2014
1 parent 92daec8 commit 9df6828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/buy_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
3 changes: 2 additions & 1 deletion commands/local_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ 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')

for row in results.rows:
print(sysRowFmt.format(row))
for stnRow in row.stations:
print(stnRowFmt.format(stnRow))

0 comments on commit 9df6828

Please sign in to comment.