fix missing global variable, add -d to usage explanation