summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-04 20:43:08 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-04 20:43:08 +0100
commit70be4f4b0f4b67b88115ef690973c5ef5b2b57c2 (patch)
tree3026a9ab5cbdb9c1f8356ac7f5380ee8c031e178 /main.c
parent86df47fc19e19ab65b74dfbc47d2b9bc50b4aac5 (diff)
write --help and --version to stdout instead of stderr
Diffstat (limited to 'main.c')
-rw-r--r--main.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/main.c b/main.c
index 61938d8a..224b9d9d 100644
--- a/main.c
+++ b/main.c
@@ -67,27 +67,27 @@ client_exec_command_line (const char *cmdline, int len) {
// if (filter == 1) {
// help, version and nowplaying are executed with any filter
if (!strcmp (parg, "--help") || !strcmp (parg, "-h")) {
- fprintf (stderr, "Usage: deadbeef [options] [file(s)]\n");
- fprintf (stderr, "Options:\n");
- fprintf (stderr, " --help or -h Print help (this message) and exit\n");
- fprintf (stderr, " --quit Quit player\n");
- fprintf (stderr, " --version Print version info and exit\n");
- fprintf (stderr, " --play Start playback\n");
- fprintf (stderr, " --stop Stop playback\n");
- fprintf (stderr, " --pause Pause playback\n");
- fprintf (stderr, " --next Next song in playlist\n");
- fprintf (stderr, " --prev Previous song in playlist\n");
- fprintf (stderr, " --random Random song in playlist\n");
- fprintf (stderr, " --queue Append file(s) to existing playlist\n");
- fprintf (stderr, " --nowplaying FMT Print formatted track name to stdout\n");
- fprintf (stderr, " FMT %%-syntax: [a]rtist, [t]itle, al[b]um,\n"
+ fprintf (stdout, "Usage: deadbeef [options] [file(s)]\n");
+ fprintf (stdout, "Options:\n");
+ fprintf (stdout, " --help or -h Print help (this message) and exit\n");
+ fprintf (stdout, " --quit Quit player\n");
+ fprintf (stdout, " --version Print version info and exit\n");
+ fprintf (stdout, " --play Start playback\n");
+ fprintf (stdout, " --stop Stop playback\n");
+ fprintf (stdout, " --pause Pause playback\n");
+ fprintf (stdout, " --next Next song in playlist\n");
+ fprintf (stdout, " --prev Previous song in playlist\n");
+ fprintf (stdout, " --random Random song in playlist\n");
+ fprintf (stdout, " --queue Append file(s) to existing playlist\n");
+ fprintf (stdout, " --nowplaying FMT Print formatted track name to stdout\n");
+ fprintf (stdout, " FMT %%-syntax: [a]rtist, [t]itle, al[b]um,\n"
" [l]ength, track[n]umber, [y]ear, [c]omment,\n"
" copy[r]ight, [e]lapsed\n");
- fprintf (stderr, " e.g.: --nowplaying \"%%a - %%t\" should print \"artist - title\"\n");
+ fprintf (stdout, " e.g.: --nowplaying \"%%a - %%t\" should print \"artist - title\"\n");
return 1;
}
else if (!strcmp (parg, "--version")) {
- fprintf (stderr, "DeaDBeeF %s Copyright (C) 2009 Alexey Yakovenko\n", VERSION);
+ fprintf (stdout, "DeaDBeeF " VERSION " Copyright © 2009-2010 Alexey Yakovenko\n");
return 1;
}
parg += strlen (parg);