Parse arg refactoring #4124

Used argParser in DaemonApp.