我正在使用Origen.current_command并想知道它是否应该设置为零?这是预期的吗?顺便说一句,下面的调试会话在 config/boot.rb 中。
** 编辑 **
有什么理由不能在Origen commands.rb 文件中更早地设置 current_command吗?
@command = ARGV.shift
@command = ORIGEN_COMMAND_ALIASES[@command] || @command
@global_commands = []
Origen.send :current_command=, @command # line 29
谢谢
peologin01:ppekit $ origen p mbist_flow.rb
8: def ignore_target?
9: if Origen.current_command.nil?
10: binding.pry
11: elsif Origen.current_command.match(/^t$|^target$|^m$|^mode$/)
12: true
13: else
14: false
15: end
=> 16: end
[1] pry(main)> ARGV
=> ["mbist_flow.rb"]
[2] pry(main)> Origen.current_command
=> nil