/* -V not together with commands */
if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
- printf(_("%s (%s)\n"), program_invocation_short_name,
+ printf(_("%s from %s\n"), program_invocation_short_name,
PACKAGE_STRING);
return EXIT_SUCCESS;
}
static void
version(void) {
- fprintf(stderr, "elvtune (%s)\n", PACKAGE_STRING);
+ fprintf(stderr, _("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
}
int
static void __attribute__ ((__noreturn__)) print_version(void)
{
- printf(_("%s (%s)\n"),
+ printf(_("%s from %s\n"),
program_invocation_short_name, PACKAGE_STRING);
exit(EXIT_SUCCESS);
}
argv[--optind] = progname;
if (verbose) {
- printf(_("mkfs (%s)\n"), PACKAGE_STRING);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
i = optind;
while (argv[i])
printf("%s ", argv[i++]);
static void print_version(FILE *out)
{
- fprintf(out, "%s from %s (libblkid %s, %s)\n",
- progname, PACKAGE_STRING, LIBBLKID_VERSION, LIBBLKID_DATE);
+ fprintf(out, "%s from %s (libblkid %s, %s)\n",
+ program_invocation_short_name, PACKAGE_STRING,
+ LIBBLKID_VERSION, LIBBLKID_DATE);
}
static void usage(int error)
++verbose;
break;
case 'V': /* version */
- printf ("umount (%s)\n", PACKAGE_STRING);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
exit (0);
case 't': /* specify file system type */
types = optarg;
_("invalid exit code"));
break;
case 'V':
- printf("flock (%s)\n", PACKAGE_STRING);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
exit(EX_OK);
default:
/* optopt will be set if this was an unrecognized
break;
case 'V':
- printf(UTIL_LINUX_VERSION);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
exit(EXIT_SUCCESS);
case 'h':
#endif
case 'v':
case 'V':
- printf(UTIL_LINUX_VERSION);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
return EXIT_SUCCESS;
default:
print_usage(stderr);
case '\t':
break;
case 'V':
- printf(_("more (%s)\n"), PACKAGE_STRING);
+ printf(_("%s from %s\n"),
+ program_invocation_short_name, PACKAGE_STRING);
exit(EXIT_SUCCESS);
break;
default: