mapbox / shapefile-fairy

I put a zipfile under my pillow and the fairy brought me shapefiles
ISC License
17 stars 6 forks source link

--no-usage #4

Closed rclark closed 9 years ago

rclark commented 9 years ago

Would be nice to be able to silence the usage output so I can do something like:

if ! tmpfile=$(shapefile-fairy /my/shp.zip --no-usage 2>&1); then
  # handle error, $tmpfile is nothing but error message
else
  # success, $tmpfile is the path to the extracted .shp
fi

cc @GretaCB