lib/slideshow/cli/opts.rb in slideshow-1.2.4 vs lib/slideshow/cli/opts.rb in slideshow-1.2.5

- old
+ new

@@ -28,11 +28,20 @@ def takahashi? return false if @takahashi.nil? # default takahashi flag is false @takahashi == true end + def verbose=(boolean) # add: alias for debug ?? + @verbose = boolean + end + def verbose? + return false if @verbose.nil? # default verbose/debug flag is false + @verbose == true + end + + def quick=(boolean) @quick = boolean end def quick? @@ -75,13 +84,13 @@ def list? return false if @list.nil? # default list flag is false @list == true end - def fetch_all=(boolean) + def fetch_all=(boolean) @fetch_all = boolean end - + def fetch_all? return false if @fetch_all.nil? # default fetch all flag is false @fetch_all == true end \ No newline at end of file