Browse files

disable specify glossary by option on loga register

  • Loading branch information...
1 parent c226b46 commit 132ab3e4b2cbc230f33a6082ef8573901d55e80a SUZUKI Miho committed Apr 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/logaling/command/application.rb
@@ -102,7 +102,8 @@ def import(external_glossary=nil)
desc 'register', 'Register .logaling'
def register
- @config.check_required_option("glossary" => "input glossary name '-g <glossary name>'")
+ raise Logaling::CommandFailed, "Can't use '-g <glossary>' option." if options["glossary"]
+ @config.check_required_option("glossary" => "Do 'loga register' at project directory.")
raise Logaling::CommandFailed, "Try 'loga new' first." unless File.exist?(@dotfile_path)
@repository.register(@dotfile_path, @config.glossary)

0 comments on commit 132ab3e

Please sign in to comment.