- intf_Msg(COPYRIGHT_MESSAGE);
- /* General options */
- intf_Msg("usage: vlc [options...]\n" \
- " -h, --help print usage\n" \
- );
- /* Audio options */
- intf_Msg(" --noaudio disable audio\n" \
- " --stereo enable stereo\n" \
- " --mono disable stereo\n"
- " --rate <rate> audio output rate (kHz)\n" \
- );
- /* Video options */
- intf_Msg(" --novideo disable video\n" \
- " --xshm, --noxshm enable/disable use of XShm extension\n" \
- " -d, --display <display> set display name\n" \
- );
-
- /* VLAN management options */
- intf_Msg(" --novlans disable vlans\n" \
- " --vlanserver <server[:port]> set vlan server address\n" \
- );
+ /* Usage */
+ intf_Msg( "Usage: vlc [options] [parameters]\n" );
+
+ if( i_fashion == USAGE )
+ {
+ intf_Msg( "Try `vlc --help' for more information.\n" );
+ return;
+ }
+
+ intf_MsgImm( COPYRIGHT_MESSAGE "\n" );
+
+ /* Options */
+ intf_Msg( "\n"
+ "Options:\n"
+ " --noaudio \tdisable audio\n"
+ " --aout <plugin> \taudio output method\n"
+ " --stereo, --mono \tstereo/mono audio\n"
+ "\n"
+ " --novideo \tdisable video\n"
+ " --vout <plugin> \tvideo output method\n"
+ " --display <display> \tdisplay string\n"
+ " --width <w>, --height <h> \tdisplay dimensions\n"
+ " -g, --grayscale \tgrayscale output\n"
+ " --color \tcolor output\n"
+ "\n"
+ " -a, --dvdaudio \tchoose DVD audio type\n"
+ " -c, --dvdchannel \tchoose DVD audio channel\n"
+ " -s, --dvdsubtitle \tchoose DVD subtitle channel\n"
+ "\n"
+ " --novlans \tdisable vlans\n"
+ " --server <host> \tvideo server address\n"
+ " --port <port> \tvideo server port\n"
+ "\n"
+ " -h, --help \tprint help and exit\n"
+ " -H, --longhelp \tprint long help and exit\n"
+ " -v, --version \toutput version information and exit\n" );
+
+ if( i_fashion == SHORT_HELP )
+ return;
+
+ /* Interface parameters */
+ intf_Msg( "\n"
+ "Interface parameters:\n"
+ " " INTF_INIT_SCRIPT_VAR "=<filename> \tinitialization script\n"
+ " " INTF_CHANNELS_VAR "=<filename> \tchannels list\n" );
+
+ /* Audio parameters */
+ intf_Msg( "\n"
+ "Audio parameters:\n"
+ " " AOUT_METHOD_VAR "=<method name> \taudio method\n"
+ " " AOUT_DSP_VAR "=<filename> \tdsp device path\n"
+ " " AOUT_STEREO_VAR "={1|0} \tstereo or mono output\n"
+ " " AOUT_RATE_VAR "=<rate> \toutput rate\n" );
+
+ /* Video parameters */
+ intf_Msg( "\n"
+ "Video parameters:\n"
+ " " VOUT_METHOD_VAR "=<method name> \tdisplay method\n"
+ " " VOUT_DISPLAY_VAR "=<display name> \tdisplay used\n"
+ " " VOUT_WIDTH_VAR "=<width> \tdisplay width\n"
+ " " VOUT_HEIGHT_VAR "=<height> \tdislay height\n"
+ " " VOUT_FB_DEV_VAR "=<filename> \tframebuffer device path\n"
+ " " VOUT_GRAYSCALE_VAR "={1|0} \tgrayscale or color output\n" );
+
+ /* DVD parameters */
+ intf_Msg( "\n"
+ "DVD parameters:\n"
+ " " INPUT_DVD_AUDIO_VAR "={ac3|lpcm|mpeg|off} \taudio type\n"
+ " " INPUT_DVD_CHANNEL_VAR "=[0-15] \taudio channel\n"
+ " " INPUT_DVD_SUBTITLE_VAR "=[0-31] \tsubtitle channel\n" );
+
+ /* Input parameters */
+ intf_Msg( "\n"
+ "Input parameters:\n"
+ " " INPUT_SERVER_VAR "=<hostname> \tvideo server\n"
+ " " INPUT_PORT_VAR "=<port> \tvideo server port\n"
+ " " INPUT_IFACE_VAR "=<interface> \tnetwork interface\n"
+ " " INPUT_VLAN_SERVER_VAR "=<hostname> \tvlan server\n"
+ " " INPUT_VLAN_PORT_VAR "=<port> \tvlan server port\n" );