Issue 336

These patches consolidate parsing the command line options in ConfigManager.
The short option "d" is same with "enable-copy-on-demand".