Use proper prog name 'awesome-message' in messages
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
28e6abcb34
commit
60f281e5da
|
@ -29,11 +29,14 @@
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
#include "common/awesome-version.h"
|
#include "common/awesome-version.h"
|
||||||
|
|
||||||
|
#define PROGNAME "awesome-message"
|
||||||
|
|
||||||
static void __attribute__ ((noreturn))
|
static void __attribute__ ((noreturn))
|
||||||
exit_help(int exit_code)
|
exit_help(int exit_code)
|
||||||
{
|
{
|
||||||
FILE *outfile = (exit_code == EXIT_SUCCESS) ? stdout : stderr;
|
FILE *outfile = (exit_code == EXIT_SUCCESS) ? stdout : stderr;
|
||||||
fprintf(outfile, "Usage: awmessage [-x xcoord] [-y ycoord] [-f fgcolor] [-b bgcolor] <message> <icon>\n");
|
fprintf(outfile, "Usage: %s [-x xcoord] [-y ycoord] [-f fgcolor] [-b bgcolor] <message> <icon>\n",
|
||||||
|
PROGNAME);
|
||||||
exit(exit_code);
|
exit(exit_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +70,7 @@ main(int argc, char **argv)
|
||||||
switch(opt)
|
switch(opt)
|
||||||
{
|
{
|
||||||
case 'v':
|
case 'v':
|
||||||
eprint_version("awmessage");
|
eprint_version(PROGNAME);
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
fg_color = a_strdup(optarg);
|
fg_color = a_strdup(optarg);
|
||||||
|
|
Loading…
Reference in New Issue