Add command line options --mood and --playlist.
[paraslash.git] / server.ggo
index e5238dbd3bdc20761eb229df02ba2d097125c5af..f0e5bb0410ea09b32b4efb5e0462333162954521 100644 (file)
@@ -38,11 +38,11 @@ privileges right after parsing the command
 line options, but before parsing the
 configuration file. In this case,
 real/effective/saved UID are all set to the
-UID of 'username'. As the configuration file
+UID of 'name'. As the configuration file
 is read afterwards, those options that have a
 default value depending on the UID (e.g. the
 directory for the configuration file) are
-computed by using the uid of 'username'.
+computed by using the uid of 'name'.
 This option has no effect if para_server is
 started as a non-root user (i.e.  EUID != 0)"
 
@@ -59,7 +59,7 @@ Otherwise, real/effective GID and the saved
 set-group ID are all set to the GID given by
 'group'. Must not be given in the config file."
 
-       string typestr="groupname"
+       string typestr="group"
        optional
 
 
@@ -132,10 +132,49 @@ option "selector" S
        string typestr="name"
        optional
 
+#############################
+section "audio file selector"
+#############################
 
+option "afs_database_dir" D
+#~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-section "mysql selector:"
-#~~~~~~~~~~~~~~~~~~~~~~~~
+"Directory containing the osl database of the
+audio file selector.
+(default='~/.paraslash/afs_database'"
+
+       string typestr="path"
+       optional
+
+
+option "afs_socket" s
+#~~~~~~~~~~~~~~~~~~~~
+
+"Command socket for the audio file selector"
+
+       string typestr="path"
+       default="/var/paraslash/afs_command_socket"
+       optional
+
+option "mood" m
+#~~~~~~~~~~~~~~
+
+"Mood to load on startup."
+
+       string typestr="mood_name"
+       optional
+
+option "playlist" P
+#~~~~~~~~~~~~~~
+
+"Playlist to load on startup. Ignored if
+--mood is given as well."
+
+       string typestr="playlist_name"
+       optional
+
+section "mysql selector"
+#~~~~~~~~~~~~~~~~~~~~~~~
 
 
 option "mysql_host" -