Some modifications to follow symfony console behavior.