- 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: %s [options] [parameters] [file]...",
+ p_main->psz_arg0 );
+
+ if( i_fashion == USAGE )
+ {
+ intf_Msg( "Try `%s --help' for more information.",
+ p_main->psz_arg0 );
+ return;
+ }
+
+ /* Options */
+ intf_Msg( "\nOptions:"
+ "\n --noaudio \tdisable audio"
+ "\n --aout <module> \taudio output method"
+ "\n --stereo, --mono \tstereo/mono audio"
+ "\n"
+ "\n --novideo \tdisable video"
+ "\n --vout <module> \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 --idct <module> \tIDCT method"
+ "\n --yuv <module> \tYUV method"
+ "\n --synchro <type> \tforce synchro algorithm"
+ "\n"
+ "\n --dvd \tDVD mode"
+ "\n -a, --dvdaudio <type> \tchoose DVD audio type"
+ "\n -c, --dvdchannel <channel> \tchoose DVD audio channel"
+ "\n -s, --dvdsubtitle <channel> \tchoose DVD subtitle channel"
+ "\n"
+ "\n --vlans \tenable vlans"
+ "\n --server <host> \tvideo server address"
+ "\n --port <port> \tvideo server port"
+ "\n --broadcast \tlisten to a broadcast"
+ "\n"
+ "\n --warning <level> \tdisplay warning messages"
+ "\n"
+ "\n -h, --help \tprint help and exit"
+ "\n -H, --longhelp \tprint long help and exit"
+ "\n -v, --version \toutput version information and exit" );
+
+ if( i_fashion == SHORT_HELP )
+ return;
+
+ /* Interface parameters */
+ intf_Msg( "\nInterface parameters:\n"
+ "\n " INTF_INIT_SCRIPT_VAR "=<filename> \tinitialization script"
+ "\n " INTF_CHANNELS_VAR "=<filename> \tchannels list"
+ "\n " INTF_WARNING_VAR "=<level> \twarning level" );
+
+ /* Audio parameters */
+ intf_Msg( "\nAudio 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" );
+
+ /* Video parameters */
+ intf_Msg( "\nVideo 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 " IDCT_METHOD_VAR "=<method name> \tIDCT method"
+ "\n " YUV_METHOD_VAR "=<method name> \tYUV method"
+ "\n " VPAR_SYNCHRO_VAR "={I|I+|IP|IP+|IPB} \tsynchro algorithm" );
+
+ /* DVD parameters */
+ intf_Msg( "\nDVD parameters:"
+ "\n " INPUT_DVD_DEVICE_VAR "=<device> \tDVD device"
+ "\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" );
+
+ /* Input parameters */
+ intf_Msg( "\nInput parameters:\n"
+ "\n " INPUT_SERVER_VAR "=<hostname> \tvideo server"
+ "\n " INPUT_PORT_VAR "=<port> \tvideo server port"
+ "\n " INPUT_IFACE_VAR "=<interface> \tnetwork interface"
+ "\n " INPUT_BROADCAST_VAR "={1|0} \tbroadcast mode"
+ "\n " INPUT_VLAN_SERVER_VAR "=<hostname> \tvlan server"
+ "\n " INPUT_VLAN_PORT_VAR "=<port> \tvlan server port"
+ );
+