db329e0 Refactor tools code

8 files Authored by jhrozek 14 years ago, Committed by sgallagh 14 years ago,
    Refactor tools code
    
    Move parameter parsing in tools before attempting to do anything that
    might fail - so that we have debug_level set correctly for potential
    error messages. That allows printing the --help and --usage messages
    without being root.
    
    Fix code duplicates in tools and refactor its code a little to lay
    ground for decoupling the synchronous interfaces.
    
    Remove some legacy tools leftovers, re-add sensible error message on
    removing nonexistent users/groups which was removed by accident.
    
    Fixes: Trac ticket #75
    Fix typo in groupdel: fixes ticket #136
    
        
file modified
+16 -28
file modified
+26 -30
file modified
+57 -46
file modified
+27 -34
file modified
+24 -28
file modified
+73 -55
file modified
+20 -16
file modified
+1 -31