3 from optparse
import OptionParser
6 if sys
.version_info
< (2, 4):
7 raise Exception('0publish-gui requires Python >= 2.4. You have %s' %
8 '.'.join(map(str, sys
.version_info
)))
10 from main
import FeedEditor
, choose_feed
13 parser
= OptionParser(usage
="usage: %prog [options] interface")
14 parser
.add_option("-V", "--version", help="display version information", action
='store_true')
15 (options
, args
) = parser
.parse_args()
18 print "0publish-gui (zero-install) " + version
19 print "Copyright (C) 2007 Thomas Leonard"
20 print "This program comes with ABSOLUTELY NO WARRANTY,"
21 print "to the extent permitted by law."
22 print "You may redistribute copies of this program"
23 print "under the terms of the GNU General Public License."
24 print "For more information about these matters, see the file named COPYING."
29 editor
= FeedEditor(file)
33 editor
= choose_feed()