diff -r d9a981cc0806 -r a7a18893730d degal/main.py --- a/degal/main.py Thu Jun 11 00:36:33 2009 +0300 +++ b/degal/main.py Thu Jun 11 00:37:01 2009 +0300 @@ -15,8 +15,14 @@ parser = OptionParser(prog=command_name) # define options - parser.add_option('-G', "--gallery-path", dest='gallery_path', help="Use DIR as the Gallery path [default: CWD]", metavar='DIR', default=None) - parser.add_option('-R', "--read-only", dest='read_only', help="Do not attempt to modify the gallery", action="store_true", default=False) + parser.add_option('-G', "--gallery-path", metavar='DIR', dest='gallery_path', default=None, + help="Use DIR as the Gallery path [default: CWD]") + + parser.add_option('-R', "--read-only", dest='read_only', action="store_true", default=False, + help="Do not attempt to modify the gallery") + + parser.add_option('-F', "--force-update", dest='force_update', action="store_true", default=False, + help="Force updates, even for fresh items") return parser @@ -35,6 +41,9 @@ if options.read_only : config.read_only = True + if options.force_update : + config.force_update = True + # XXX: load config file(s) return config