mgdm / htmlq

Like jq, but for HTML.
MIT License
7.09k stars 111 forks source link

make html not * the default selector #4

Closed carnott-snap closed 3 years ago

carnott-snap commented 4 years ago

Currently if you leave off the selector argument the cli breaks. It would be nice to have a sane default, like print the whole html document. There are some places where Options are converted into Strings, implying that is supposed to be the default selector. This change realises that implied intention, but decides html, which prints the whole document, instead of , which prints every tag recursively, is a better default.

mgdm commented 3 years ago

Hi! Sorry this took so long to get to. I don't appear to have been getting notifications from this project, and only went back to look at it today. That makes perfect sense, thank you!