A package contains (usually) more than a single SQL statement. That's why you should also specify the -section option.
And what exactly was the error message you got with your example? I would expect something like "database not specified" or so because you have no -d option. But that's just a guess...