Allow URL to passed as a "main" option

Resolves #249