dcaliste / maep-qt

A map viewer for Jolla Sailfish OS
29 stars 14 forks source link

Cli args #40

Open hsjpekka opened 4 years ago

hsjpekka commented 4 years ago

read address from command line arguments

search for -q, --query, or --address in the command line arguments, the next string is either an url or a street address

in case of -q or --query, use url parser for extracting address="string" from the url

paste the address to placeHeader.text and start searching

url parser modified from getAllUrlParams on www.sitepoint.com/get-url-parameters-with-javascript/