lib/slideshow/opts.rb in slideshow-0.7.8 vs lib/slideshow/opts.rb in slideshow-0.8
- old
+ new
@@ -48,10 +48,22 @@
def generate?
get_boolean( 'generate', false )
end
+ def list?
+ get_boolean( 'list', false )
+ end
+
+ def fetch?
+ get( 'fetch_uri', nil ) != nil
+ end
+
+ def fetch_uri
+ get( 'fetch_uri', '-fetch uri required-' )
+ end
+
def has_includes?
@hash[ :include ]
end
def includes
@@ -67,9 +79,13 @@
get_boolean( 'fuller', false ) || get_boolean( 'fullerscreen', false )
end
def manifest
get( 'manifest', 's6.txt' )
+ end
+
+ def config_path
+ get( 'config_path', nil )
end
def output_path
get( 'output', '.' )
end