]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
libvlc: Put vlc_usage in the same file than where it is used.
[vlc] / src / libvlc.c
index 66f0e31cb336b20d0b4fe9e3c003d2bf92422b24..7e1613d25aad442b4a9b7ebac188cbdb97378b83 100644 (file)
@@ -1315,6 +1315,38 @@ static inline void print_help_on_full_help( void )
     utf8_fprintf( stdout, "%s\n", _("To get exhaustive help, use '-H'.") );
 }
 
+static const char vlc_usage[] = N_(
+                            "Usage: %s [options] [stream] ..."
+                            "\nYou can specify multiple streams on the commandline. They will be enqueued in the playlist."
+                            "\nThe first item specified will be played first."
+                            "\n"
+                            "\nOptions-styles:"
+                            "\n  --option  A global option that is set for the duration of the program."
+                            "\n   -option  A single letter version of a global --option."
+                            "\n   :option  An option that only applies to the stream directly before it"
+                            "\n            and that overrides previous settings."
+                            "\n"
+                            "\nStream MRL syntax:"
+                            "\n  [[access][/demux]://]URL[@[title][:chapter][-[title][:chapter]]] [:option=value ...]"
+                            "\n"
+                            "\n  Many of the global --options can also be used as MRL specific :options."
+                            "\n  Multiple :option=value pairs can be specified."
+                            "\n"
+                            "\nURL syntax:"
+                            "\n  [file://]filename              Plain media file"
+                            "\n  http://ip:port/file            HTTP URL"
+                            "\n  ftp://ip:port/file             FTP URL"
+                            "\n  mms://ip:port/file             MMS URL"
+                            "\n  screen://                      Screen capture"
+                            "\n  [dvd://][device][@raw_device]  DVD device"
+                            "\n  [vcd://][device]               VCD device"
+                            "\n  [cdda://][device]              Audio CD device"
+                            "\n  udp://[[<source address>]@[<bind address>][:<bind port>]]"
+                            "\n                                 UDP stream sent by a streaming server"
+                            "\n  vlc://pause:<seconds>          Special item to pause the playlist for a certain time"
+                            "\n  vlc://quit                     Special item to quit VLC"
+                            "\n");
+
 static void Help( libvlc_int_t *p_this, char const *psz_help_name )
 {
 #ifdef WIN32