Add --function= arg to doc_extract so we can use it on normal ccan C