added -o option to list commands.

Remove -c and -d