Make --version uniform and avoid hard-coded program name.

This commit is contained in:
Grégoire Sutre 2010-06-08 12:52:42 +02:00
parent e8a6f3b6a5
commit 0ea7c4f93c
12 changed files with 70 additions and 30 deletions

View file

@ -503,7 +503,7 @@ parse_options (struct grub_setup_info *gp, int argc, char *argv[])
break;
case 'V':
printf ("grub-setup (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
printf ("%s (%s) %s\n", program_name, PACKAGE_NAME, PACKAGE_VERSION);
return 0;
case 'v':