Replace dryRun option with --dry-run flag.