#! /usr/bin/env python3
# mapIt.py
# command line or clipboard

import webbrowser, sys, pyperclip
if len(sys.argv) > 1:
  # Get address from the command line
  address = ' '.join(sys.argv[1:])
else:
  # Get address from the clipboard
  address = pyperclip.paste()
webbrowser.open('https://google.com/maps/place/' + address)
