I have already written function and menu entries parsing an found out
that passing menu as a parameter was a bad idea. Some examples: if I
call other script from config file with source command it can't add menu
entries anymore as command_script as any grub command doesn't receive
menu as a parameter. Yes I can make separate handling of source command
but I think it's ugly.