I use this command to get values of ez-toc-settings->auto_insert_post_types
wp eval "print_r(get_option('ez-toc-settings')['auto_insert_post_types']);"
and this prints out the correct values:
Array
(
[post] => post
[page] => page
)
Now, I try to modify that so I have only "post" value I tried with:
wp eval "update_option('ez-toc-settings auto_insert_post_types', array('post'));"
Infact I have no idea on how to update a key value within a nested option.