Changeset 1755 for pykota/trunk/bin
- Timestamp:
- 09/28/04 19:45:31 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r1584 r1755 24 24 # 25 25 # $Log$ 26 # Revision 1.77 2004/09/28 17:45:31 jalet 27 # Added the --hardreset command line option to edpykota 28 # 26 29 # Revision 1.76 2004/07/01 19:56:40 jalet 27 30 # Better dispatching of error messages … … 334 337 -n | --noquota Doesn't set a quota but only does accounting. 335 338 336 -r | --reset Resets the printed page counter for the user 337 or group to zero. The life time page counter 338 is kept unchanged. 339 -r | --reset Resets the actual page counter for the user 340 or group to zero on the specified printers. 341 The life time page counter is kept unchanged. 342 343 -R | --hardreset Resets the actual and life time page counters 344 for the user or group to zero on the specified 345 printers. 339 346 340 347 -l | --limitby l Choose if the user/group is limited in printing … … 394 401 well as every user whose name begins with 'jo'. 395 402 Their life time page counter on each printer will be kept unchanged. 403 You can also reset the life time page counters by using the 404 --hardreset | -R command line option. 396 405 397 406 $ edpykota --printer hpcolor --noquota jerome … … 622 631 if options["reset"] : 623 632 entrypquota.reset() 633 elif options["hardreset"] : 634 entrypquota.hardreset() 624 635 625 636 if balance : … … 660 671 "printer" : "*", \ 661 672 } 662 short_options = "vhdc:l:b:i:naugrp:P:S:H:G: "663 long_options = ["help", "version", "charge=", "delete", "limitby=", "balance=", "ingroups=", "noquota", "add", "users", "groups", "reset", " prototype=", "printer=", "softlimit=", "hardlimit=", "pgroups="]673 short_options = "vhdc:l:b:i:naugrp:P:S:H:G:R" 674 long_options = ["help", "version", "charge=", "delete", "limitby=", "balance=", "ingroups=", "noquota", "add", "users", "groups", "reset", "hardreset", "prototype=", "printer=", "softlimit=", "hardlimit=", "pgroups="] 664 675 665 676 # Initializes the command line tool … … 687 698 options["charge"] = options["c"] or options["charge"] 688 699 options["pgroups"] = options["G"] or options["pgroups"] 700 options["hardreset"] = options["R"] or options["hardreset"] 689 701 690 702 if options["help"] :