Skip to content

Commit

Permalink
Print usage if no jobs are specified in jip_logs (Issue #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
thasso committed Jan 16, 2014
1 parent 8fdc8fb commit b92a2f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jip/cli/jip_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
def main():
args = parse_args(__doc__, options_first=False)
job_ids, cluster_ids = parse_job_ids(args)
if not job_ids and not cluster_ids:
print __doc__.strip("\n")
return
jobs = jip.db.query(job_ids=job_ids, cluster_ids=cluster_ids,
archived=None, fields=['stdout', 'stderr',
'job_id', 'id', 'name',
Expand Down

0 comments on commit b92a2f0

Please sign in to comment.