Changeset 92fc113b133a01ac8786a019582018480bc13c22

Show
Ignore:
Timestamp:
12/18/07 20:19:37 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1198005577 +0000
git-parent:

[2ef3494d82c286e0f1e3ac7421dec82e1d858757]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1198005577 +0000
Message:

Move options from the help kludgeWmodule to the main module

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-module.c

    r2ef3494 r92fc113  
    23782378              BOOKMARK10_TEXT, BOOKMARK_LONGTEXT, VLC_FALSE ); 
    23792379 
    2380     /* Usage (mainly useful for cmd line stuff) */ 
     2380#define HELP_TEXT \ 
     2381    N_("print help for VLC (can be combined with --advanced and " \ 
     2382       "--help-verbose)") 
     2383#define LONGHELP_TEXT \ 
     2384    N_("print help for VLC and all its modules (can be combined with " \ 
     2385       "--advanced and --help-verbose)") 
     2386#define ADVANCED_TEXT \ 
     2387    N_("print help for the advanced options") 
     2388#define HELP_VERBOSE_TEXT \ 
     2389    N_("ask for extra verbosity when displaying help") 
     2390#define LIST_TEXT \ 
     2391    N_("print a list of available modules") 
     2392#define LIST_VERBOSE_TEXT \ 
     2393    N_("print a list of available modules with extra detail") 
     2394#define MODULE_TEXT \ 
     2395    N_("print help on a specific module (can be combined with --advanced " \ 
     2396       "and --help-verbose)") 
     2397#define SAVE_CONFIG_TEXT \ 
     2398    N_("save the current command line options in the config") 
     2399#define RESET_CONFIG_TEXT \ 
     2400    N_("reset the current config to the default values") 
     2401#define CONFIG_TEXT \ 
     2402    N_("use alternate config file") 
     2403#define RESET_PLUGINS_CACHE_TEXT \ 
     2404    N_("resets the current plugins cache") 
     2405#define VERSION_TEXT \ 
     2406    N_("print version information") 
     2407  
     2408    add_bool( "help", VLC_FALSE, NULL, HELP_TEXT, "", VLC_FALSE ); 
     2409        change_short( 'h' ); 
     2410        change_internal(); 
     2411        change_unsaveable(); 
     2412    add_bool( "longhelp", VLC_FALSE, NULL, LONGHELP_TEXT, "", VLC_FALSE ); 
     2413        change_short( 'H' ); 
     2414        change_internal(); 
     2415        change_unsaveable(); 
     2416    add_bool( "advanced", VLC_FALSE, NULL, ADVANCED_TEXT, "", VLC_FALSE ); 
     2417        change_internal(); 
     2418        change_unsaveable(); 
     2419    add_bool( "help-verbose", VLC_FALSE, NULL, HELP_VERBOSE_TEXT, "", 
     2420              VLC_FALSE ); 
     2421        change_internal(); 
     2422        change_unsaveable(); 
     2423    add_bool( "list", VLC_FALSE, NULL, LIST_TEXT, "", VLC_FALSE ); 
     2424        change_short( 'l' ); 
     2425        change_internal(); 
     2426        change_unsaveable(); 
     2427    add_bool( "list-verbose", VLC_FALSE, NULL, LIST_VERBOSE_TEXT, "", 
     2428              VLC_FALSE ); 
     2429        change_short( 'l' ); 
     2430        change_internal(); 
     2431        change_unsaveable(); 
     2432    add_string( "module", NULL, NULL, MODULE_TEXT, "", VLC_FALSE ); 
     2433        change_short( 'p' ); 
     2434        change_internal(); 
     2435        change_unsaveable(); 
     2436    add_bool( "save-config", VLC_FALSE, NULL, SAVE_CONFIG_TEXT, "", 
     2437              VLC_FALSE ); 
     2438        change_internal(); 
     2439        change_unsaveable(); 
     2440    add_bool( "reset-config", VLC_FALSE, NULL, MODULE_TEXT, "", VLC_FALSE ); 
     2441        change_internal(); 
     2442        change_unsaveable(); 
     2443    add_bool( "reset-plugins-cache", VLC_FALSE, NULL, 
     2444              RESET_PLUGINS_CACHE_TEXT, "", VLC_FALSE ); 
     2445        change_internal(); 
     2446        change_unsaveable(); 
     2447    add_bool( "version", VLC_FALSE, NULL, VERSION_TEXT, "", VLC_FALSE ); 
     2448        change_internal(); 
     2449        change_unsaveable(); 
     2450    add_string( "config", NULL, NULL, CONFIG_TEXT, "", VLC_FALSE ); 
     2451        change_internal(); 
     2452        change_unsaveable(); 
     2453    add_bool( "version", VLC_FALSE, NULL, VERSION_TEXT, "", VLC_FALSE ); 
     2454        change_internal(); 
     2455        change_unsaveable(); 
     2456 
     2457   /* Usage (mainly useful for cmd line stuff) */ 
    23812458    /* add_usage_hint( PLAYLIST_USAGE ); */ 
    23822459 
     
    23872464module_config_t libvlc_config[] = 
    23882465{ 
    2389     { 
    2390         .i_type   = CONFIG_ITEM_BOOL, 
    2391         .psz_name = "help", 
    2392         .i_short  = 'h', 
    2393         .psz_text = N_("print help for VLC (can be combined with --advanced and --help-verbose)") 
    2394     }, 
    2395     { 
    2396         .i_type   = CONFIG_ITEM_BOOL, 
    2397         .psz_name = "longhelp", 
    2398         .i_short  = 'H', 
    2399         .psz_text = N_("print help for VLC and all its modules (can be combined with --advanced and --help-verbose)") 
    2400     }, 
    2401     { 
    2402         .i_type   = CONFIG_ITEM_BOOL, 
    2403         .psz_name = "advanced", 
    2404         .psz_text = N_("print help for the advanced options") 
    2405     }, 
    2406     { 
    2407         .i_type   = CONFIG_ITEM_BOOL, 
    2408         .psz_name = "help-verbose", 
    2409         .psz_text = N_("ask for extra verbosity when displaying help") 
    2410     }, 
    2411     { 
    2412         .i_type   = CONFIG_ITEM_BOOL, 
    2413         .psz_name = "list", 
    2414         .i_short  = 'l', 
    2415         .psz_text = N_("print a list of available modules") 
    2416     }, 
    2417     { 
    2418         .i_type   = CONFIG_ITEM_BOOL, 
    2419         .psz_name = "list-verbose", 
    2420         .psz_text = N_("print a list of available modules with extra detail") 
    2421     }, 
    2422     { 
    2423         .i_type   = CONFIG_ITEM_STRING, 
    2424         .psz_name = "module", 
    2425         .i_short  = 'p', 
    2426         .psz_text = N_("print help on a specific module (can be combined with --advanced and --help-verbose)") 
    2427     }, 
    2428     { 
    2429         .i_type   = CONFIG_ITEM_BOOL, 
    2430         .psz_name = "save-config", 
    2431         .psz_text = N_("save the current command line options in the config") 
    2432     }, 
    2433     { 
    2434         .i_type   = CONFIG_ITEM_BOOL, 
    2435         .psz_name = "reset-config", 
    2436         .psz_text = N_("reset the current config to the default values") 
    2437     }, 
    2438     { 
    2439         .i_type   = CONFIG_ITEM_STRING, 
    2440         .psz_name = "config", 
    2441         .psz_text = N_("use alternate config file") 
    2442     }, 
    2443     { 
    2444         .i_type   = CONFIG_ITEM_BOOL, 
    2445         .psz_name = "reset-plugins-cache", 
    2446         .psz_text = N_("resets the current plugins cache") 
    2447     }, 
    2448     { 
    2449         .i_type   = CONFIG_ITEM_BOOL, 
    2450         .psz_name = "version", 
    2451         .psz_text = N_("print version information") 
    2452     } 
    24532466}; 
    24542467