Skip to content

Commit

Permalink
Merge pull request #125 from mhearne-usgs/typefix
Browse files Browse the repository at this point in the history
Added event type flag, allowing users to search for eruptions, explos…
  • Loading branch information
emthompson-usgs authored Aug 28, 2018
2 parents bd93f19 + 61b6094 commit 475529d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/getproduct
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def get_parser():
help='Product property (reviewstatus:approved).')
parser.add_argument('-t', '--event-property', dest='eventProperties',
help='Event property (alert:yellow, status:REVIEWED, etc.).', type=makedict)
parser.add_argument('-v', '--event-type', dest='eventType',
help='Event type (earthquake, "volcanic eruption", etc.).')
parser.add_argument('-l', '--list-url', dest='list_only', action='store_true',
help='Only list urls for contents in events that match criteria.')

Expand Down Expand Up @@ -200,6 +202,7 @@ def main():
catalog=args.catalog,
contributor=args.contributor,
producttype=args.product,
eventtype=args.eventType,
maxmagnitude=maxmag,
minmagnitude=minmag,
host=args.host)
Expand Down

0 comments on commit 475529d

Please sign in to comment.