Pro tip: when writing out commands for people to read it helps to use the long form arguments. In this case passing '--all' instead of '-a' to smartctl. It makes it easier to read and more clear what specific options do. Same with calling things in scripts. Short form is for quick and dirty typing things, but not great for reading or comprehension :)
Fair point, yes, I should have done that!
Derp you are correct, sorry. Hopefully my comment is still useful for anyone who didn't know they needed smartmontools