r1k0/kicktoo — pull request #21 by wimmuskee (2012-05-13 08:22:28+00:00)
Title: locale_set doc, remove --quiet and improved import

I got rid of the "file not found" error in the import function but instead gave the user feedback on the location from which the module was imported in the debug message at the end.

Then I found out the debug wasn't available yet because the debug flag was set after calling all the imports. So, the imports should be called after the commandline parsing.

However, the warn function was called in the commandline parsing, requiring the imports (output.sh) to be called before the commandline parsing.

Looking closer to the reason of the warns (in --quiet and --verbose), I decided that one of them was unnecessary. Kicktoo is hardcode to be quiet anyway (because of the verbose=0 at the start). So, only --verbose is required as an optional setting.