summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-09-02 20:54:14 +0200
committerGravatar waker <wakeroid@gmail.com>2009-09-02 20:54:14 +0200
commitaccc0d3f76f1684a45ebfbec4ce762f700ff2c5c (patch)
tree7d705a9c51135334bb1f93d0eacf31c2bd960dd1 /main.c
parent75dae148317c5dcfd41d956d2393ae1f07138207 (diff)
added --version commandline arg
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index e4cf43f7..ade19e5d 100644
--- a/main.c
+++ b/main.c
@@ -163,10 +163,10 @@ exec_command_line (const char *cmdline, int len, int filter) {
while (parg < pend) {
if (filter == 1) {
if (!strcmp (parg, "--help") || !strcmp (parg, "-h")) {
- printf ("DeaDBeeF %s Copyright (C) 2009 Alexey Yakovenko\n", VERSION);
printf ("Usage: deadbeef [options] [file(s)]\n");
printf ("Options:\n");
printf (" --help or -h Print help (this message) and exit\n");
+ printf (" --version Print version info and exit\n");
printf (" --play Start playback\n");
printf (" --stop Stop playback\n");
printf (" --pause Pause playback\n");
@@ -176,6 +176,10 @@ exec_command_line (const char *cmdline, int len, int filter) {
printf (" --queue Append file(s) to existing playlist\n");
return 1;
}
+ else if (!strcmp (parg, "--version")) {
+ printf ("DeaDBeeF %s Copyright (C) 2009 Alexey Yakovenko\n", VERSION);
+ return 1;
+ }
}
else if (filter == 0) {
if (!strcmp (parg, "--next")) {