Rename appname to commandname for consistency