movie_merge 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,13 @@ module MovieMerge
9
9
  option :target, :type => :string, :aliases => "-t"
10
10
  option :'dry-run', :type => :boolean, :aliases => "-d", :default => false
11
11
  option :help, :type => :boolean, :aliases => "-h", :default => false
12
+ option :version, :type => :boolean, :aliases => "-v", :default => false
12
13
  def join(*sources)
14
+ # Check if the version flag is present and if so return the version number.
15
+ if options[:version]
16
+ return say("Movie Merge v#{MovieMerge::VERSION}", :green)
17
+ end
18
+
13
19
  # Check if the help flag is present and if so return the help information.
14
20
  if options[:help]
15
21
  return self.class.task_help(self, :join)
@@ -1,3 +1,3 @@
1
1
  module MovieMerge
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movie_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: