add option parser for group.