[passwordgenerator.py] Improve the use of "-d" parameter