517468 - Adding option [-d|--dry-run]

1. Adding option [-d|--dry-run]
2. Correcting the indents in order the logic to be correct as well.