added -o option to list commands.