Changeset 2645 for devel/mindi/sbin


Ignore:
Timestamp:
Jun 13, 2010, 12:36:21 PM (9 years ago)
Author:
bruno
Message:

r3868@localhost: bruno | 2010-06-10 11:42:41 +0200

  • Improves mindi documentation for options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/mindi/sbin/mindi

    r2540 r2645  
    66# $Id$
    77#
    8 # Copyright B. Cornec 2008
     8# Copyright B. Cornec 2008-2010
    99# Provided under the GPL v2
    1010
     
    5353=head1 OPTIONS
    5454
     55=cut
     56
     57# Handle options
     58#
     59GetOptions(
     60
    5561=over 4
    5662
     63=cut
     64        "verbose|v+" => \$opts{'v'},
     65
    5766=item B<-v|--verbose>
    5867
    5968Print a brief help message and exits.
    6069
     70=cut
     71        "quiet|q" => \$opts{'q'},
     72
    6173=item B<-q|--quiet>
    6274
    6375Do not print any output.
    6476
     77=cut
     78        "help|?|h" => \$opts{'h'},
     79
    6580=item B<-h|--help>
    6681
    6782Print a brief help message and exits.
    6883
     84=cut
     85        "man" => \$opts{'man'},
     86
    6987=item B<--man>
    7088
    7189Prints the manual page and exits.
    7290
     91=cut
     92        "iso|i=s" => \$opts{'i'},
     93
    7394=item B<-i|--iso iso_image>
    7495
    7596Name of the ISO image you want to created.
     97
     98=cut
     99        "usb|u=s" => \$opts{'u'},
     100
     101=item B<-u|--usb usb_device>
     102
     103Name of the USB device on which you want to created your image.
     104
     105=cut
     106        "tape|t=s" => \$opts{'t'},
     107
     108=item B<-t|--tape tape_device>
     109
     110Name of the Tape device on which you want to created your image.
     111
     112=cut
     113        "obdr|o" => \$opts{'o'},
     114
     115=item B<-o|--obdr>
     116
     117Activate OBDR mode for tape (Bootable tape devices)
     118
     119=cut
     120        "version|V" => \$opts{'V'},
     121
     122=item B<-V|--version>
     123
     124Display mindi version and exit
     125
     126=cut
     127        "force|f" => \$opts{'f'},
     128
     129=item B<-f|--force>
     130
     131Force usage of defaults parameters or values without asking questions
     132
     133=cut
     134        "printvar|p=s" => \$opts{'p'},
     135
     136=item B<-p|--printvars variable>
     137
     138Prints the value of the variable passed as parameter
     139
     140=cut
     141        "log-files|l=s" => \$opts{'l'},
     142) || pb_syntax(-1,0);
    76143
    77144=back
     
    94161 # If not defined, mrcachedir is under /var/cache/mindi
    95162 mrcachedir mindi = /var/cache/mindi
     163
     164 Also look at man mindi.conf
    96165 
    97166=head1 AUTHORS
     
    112181pb_syntax_init("mindi Version PBVER-rPBREV\n");
    113182pb_display_init("text","");
    114 
    115 # Handle options
    116 #
    117 GetOptions("help|?|h" => \$opts{'h'},
    118         "man" => \$opts{'man'},
    119         "verbose|v+" => \$opts{'v'},
    120         "quiet|q" => \$opts{'q'},
    121         "log-files|l=s" => \$opts{'l'},
    122         "force|f" => \$opts{'f'},
    123         "iso|i=s" => \$opts{'i'},
    124         "usb|u=s" => \$opts{'u'},
    125         "tape|t=s" => \$opts{'t'},
    126         "printvar|p=s" => \$opts{'p'},
    127         "obdr|o" => \$opts{'o'},
    128         "version|V" => \$opts{'V'},
    129 ) || pb_syntax(-1,0);
    130183
    131184# easy options
     
    194247close(CONF);
    195248
     249# Adds conf files in order
    196250pb_conf_add("$ENV{'HOME'}/.mondorescuerc","$MINDI_CONF/mondorescue.conf","$MINDI_CONF/mondorescue.conf.dist");
    197251
Note: See TracChangeset for help on using the changeset viewer.