pre_hook and post_hook should support option `Commands`, type - list of strings. Also option command must supports for backward compatibility