Don't print deprecation warning if no arg is specified. Fixes #1041.