diff options
author | Alfred E. Heggestad <aeh@db.org> | 2014-06-29 18:11:26 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2014-06-29 18:11:26 +0200 |
commit | 75c2b026be9d255d667fa04c0e095fd4f4fa3740 (patch) | |
tree | febb488e4ea2c6edeb7523c6adbe9503825d657e /src | |
parent | 2e3d6a0ff8b621cd8536796d88e804d4dac3ee2a (diff) |
add option to set path to audio-files
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -49,7 +49,7 @@ int main(int argc, char *argv[]) #ifdef HAVE_GETOPT for (;;) { - const int c = getopt(argc, argv, "6de:f:hv"); + const int c = getopt(argc, argv, "6de:f:p:hv"); if (0 > c) break; @@ -66,6 +66,7 @@ int main(int argc, char *argv[]) "\t-d Daemon\n" "\t-e <commands> Exec commands\n" "\t-f <path> Config path\n" + "\t-p <path> Audio files\n" "\t-h -? Help\n" "\t-v Verbose debug\n" ); @@ -89,6 +90,10 @@ int main(int argc, char *argv[]) conf_path_set(optarg); break; + case 'p': + play_set_path(optarg); + break; + case 'v': log_enable_debug(true); break; |