Enabling white/black list for sub command selection

Signed-off-by: Hao Liu <hliu@redhat.com>