Get command set from a command

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>