Changeset 628 for trunk


Ignore:
Timestamp:
Feb 16, 2008, 12:39:34 AM (12 years ago)
Author:
Dominic Hargreaves
Message:

add --quiet and --report options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/process-problems

    r609 r628  
    1818    },
    1919    'sameonly|s!',
     20    'quiet|q!',
     21    'report|r!',
    2022);
    2123
     
    4850
    4951if ($sth->rows == 0) {
    50     print "No problems\n";
     52    print "No problems\n" unless $config->quiet;
    5153    exit 0;
    5254}
     
    8082# Now prompt for deletions
    8183
     84exit if $config->report;
     85
    8286print "Warning: no validation of postcodes input here\n";
    8387while (1) {
    8488    unless (%probids) {
    85         print "No more problems.\n";
     89        print "No more problems.\n" unless $config->quiet;
    8690        last;
    8791    }
Note: See TracChangeset for help on using the changeset viewer.