diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-18 22:10:39 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-18 22:10:39 +0100 |
commit | 66f3c9fbefdacd388e5b639fd9d4cfa4ccf81fe6 (patch) | |
tree | 279a4ff8b16df46ee43d80952618ebec2ba121d4 /main.c | |
parent | 9590f8bc022080656402295ed91c75aeac92317e (diff) |
added --quit command line argument
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,7 @@ exec_command_line (const char *cmdline, int len, int filter) { printf (" --prev Previous song in playlist\n"); printf (" --random Random song in playlist\n"); printf (" --queue Append file(s) to existing playlist\n"); + printf (" --quit Quit player\n"); return 1; } else if (!strcmp (parg, "--version")) { @@ -109,6 +110,9 @@ exec_command_line (const char *cmdline, int len, int filter) { else if (!strcmp (parg, "--queue")) { queue = 1; } + else if (!strcmp (parg, "--quit")) { + messagepump_push (M_TERMINATE, 0, 0, 0); + } else if (parg[0] != '-') { break; } |