Skip to content

Commit

Permalink
Merge pull request #13 from saschahauer/places-v
Browse files Browse the repository at this point in the history
remote/client: add -v option for places command
  • Loading branch information
jluebbe committed Mar 2, 2017
2 parents ebae3cd + 68236ba commit 24b0aaa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions labgrid/remote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ def print_places(self):
for name, place in sorted(self.places.items()):
if self.args.acquired and place.acquired is None:
continue
print("Place '{}':".format(name))
place.show(level=1)
if self.args.verbose:
print("Place '{}':".format(name))
place.show(level=1)
else:
print(name)

def _match_places(self, pattern):
result = set()
Expand Down Expand Up @@ -453,6 +456,7 @@ def main():

subparser = subparsers.add_parser('places')
subparser.add_argument('-a', '--acquired', action='store_true')
subparser.add_argument('-v', '--verbose', action='store_true')
subparser.set_defaults(func=ClientSession.print_places)

subparser = subparsers.add_parser('show', parents=[place_parser],
Expand Down

0 comments on commit 24b0aaa

Please sign in to comment.