movie_merge 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/movie_merge/cli.rb +6 -0
- data/lib/movie_merge/version.rb +1 -1
- metadata +1 -1
data/lib/movie_merge/cli.rb
CHANGED
@@ -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)
|
data/lib/movie_merge/version.rb
CHANGED