lib/rbbt/util/cmd.rb in rbbt-util-5.26.68 vs lib/rbbt/util/cmd.rb in rbbt-util-5.26.69
- old
+ new
@@ -144,9 +144,11 @@
all_args = *args
all_args << {} unless Hash === all_args.last
level = all_args.last[:log] || 0
+ level = 0 if TrueClass === level
+ level = 10 if FalseClass === level
level = level.to_i
all_args.last[:log] = true
all_args.last[:pipe] = true