Add --expand flag for hierarchy command.