squish.lua

changeset 24
73ac55bcc19a
parent 23
e3b923ccadb1
child 25
a4972a690064
equal deleted inserted replaced
23:e3b923ccadb1 24:73ac55bcc19a
77 function GetOption(name) 77 function GetOption(name)
78 return opts[name:gsub('%-', '_')]; 78 return opts[name:gsub('%-', '_')];
79 end 79 end
80 80
81 function Message(message) 81 function Message(message)
82 print_info(message); 82 if not opts.quiet then
83 print_info(message);
84 end
83 end 85 end
84 86
85 function Error(message) 87 function Error(message)
86 print_err(message); 88 if not opts.very_quiet then
89 print_err(message);
90 end
87 end 91 end
88 92
89 function Exit() 93 function Exit()
90 os.exit(1); 94 os.exit(1);
91 end 95 end

mercurial