Changeset 32 for pkipplib/trunk/bin
- Timestamp:
- 06/24/06 15:31:05 (18 years ago)
- Files:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
pkipplib/trunk/bin/pksubscribe
r31 r32 21 21 # $Id$ 22 22 23 """ cupssubscribe is a command line tool which can be used to create23 """pksubscribe is a command line tool which can be used to create 24 24 or delete IPP subscriptions.""" 25 25 … … 37 37 sys.stderr.write("Problem while setting locale.\n") 38 38 try : 39 gettext.install(" cupssubscribe")39 gettext.install("pksubscribe") 40 40 except : 41 41 gettext.NullTranslations().install() 42 parser = optparse.OptionParser(usage=" cupssubscribe [options] [subscriptions ids]")42 parser = optparse.OptionParser(usage="pksubscribe [options] [subscriptions ids]") 43 43 parser.add_option("-v", "--version", 44 44 action="store_true", 45 45 dest="version", 46 help=_("show cupssubscribe's version number and exit."))46 help=_("show pksubscribe's version number and exit.")) 47 47 parser.add_option("-c", "--cups", 48 48 default="http://localhost:631", … … 99 99 (options, arguments) = parser.parse_args() 100 100 if options.version : 101 print " cupssubscribe v%(__version__)s" % globals()101 print "pksubscribe v%(__version__)s" % globals() 102 102 else : 103 103 if not options.events and not options.delete :