add a switch Ddg for print ddg

Signed-off-by: xiehuc <xiehuc@gmail.com>