Write out full flags in reused code

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the bash category.

Last Updated: 2024-04-25

I wanted to download a website and wrote a script with the following:

$ wget -k -p -m -E -r example.com

Returning to the code merely days later, I had no idea what this meant.

If any code that's mean to be re-used, always use the full flags for a command instead of the shortversion.

$ wget --convert-links --page-requisites --mirror --adjust-extension --recursive example.com