Using PROGNAME for camera(1) as well

This commit is contained in:
Pierre Pronchery 2013-11-24 03:18:07 +01:00
parent 5cf897fb1a
commit 8cd6481b8e

View File

@ -27,6 +27,9 @@
/* constants */ /* constants */
#ifndef PROGNAME
# define PROGNAME "camera"
#endif
#ifndef PREFIX #ifndef PREFIX
# define PREFIX "/usr/local" # define PREFIX "/usr/local"
#endif #endif
@ -64,9 +67,9 @@ static int _camera(char const * device, char const * overlay)
/* usage */ /* usage */
static int _usage(void) static int _usage(void)
{ {
fputs(_("Usage: camera [-d device][-O filename]\n" fprintf(stderr, _("Usage: %s [-d device][-O filename]\n"
" -d Video device to open\n" " -d Video device to open\n"
" -O Use this file as an overlay\n"), stderr); " -O Use this file as an overlay\n"), PROGNAME);
return 1; return 1;
} }