fix(cli): fix write-heading-ids CLI when no files provided
#11763
+10
−6
write-heading-ids CLI when no files provided
#11763