Adapted gen.pl with 'listcats' This commit is a part of "--help me if you can" Closes #5680
Follow-up to 93373a960c Reported-by: infinnovation-dev on github Fixes #4474 Closes #4475
93373a960c