lib/learn_open/argument_parser.rb in learn-open-1.1.1 vs lib/learn_open/argument_parser.rb in learn-open-1.1.2

- old
+ new

@@ -19,10 +19,10 @@ configured_editor = !(editor_data.empty? || editor_data.nil?) ? editor_data : nil editor_specified = ARGV.detect {|arg| arg.start_with?('--editor=')}.match(/\-\-editor=(.+)/) || configured_editor open_after = !!editor_specified if !ARGV[0].start_with?('--editor=') && !ARGV[0].start_with?('--next') - lesson = ARGV[0] + lesson = ARGV[0].sub(/\/$/, '') elsif ARGV[0].start_with?('--next') next_lesson = true end if open_after