lib/repl.rb in runeblog-0.2.50 vs lib/repl.rb in runeblog-0.2.51
- old
+ new
@@ -263,9 +263,13 @@
return @out
end
def cmd_new_view(arg, testing = false)
reset_output
+ if arg.nil?
+ arg = ask("\nFilename: ")
+ puts
+ end
@blog.create_view(arg)
edit_file(@blog.view.dir/"themes/standard/global.lt3")
@blog.change_view(arg)
@out
rescue ViewAlreadyExists