degal/main.py
changeset 87 a7a18893730d
parent 76 e22d9f699081
child 89 4b254a90d6d0
child 92 eb50b4f7812d
--- 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