phases: default names is the snake_cased version of the classname
authorJean Privat <jean@pryen.org>
Fri, 17 Apr 2015 07:25:35 +0000 (14:25 +0700)
committerJean Privat <jean@pryen.org>
Fri, 17 Apr 2015 15:21:16 +0000 (22:21 +0700)
use `nitc --disable-phase list` to see them

Signed-off-by: Jean Privat <jean@pryen.org>

src/phase.nit

index 502d817..5f0faf1 100644 (file)
@@ -222,7 +222,7 @@ abstract class Phase
        end
 
        # By default, the name is the lowercased prefix of the classname
-       redef fun to_s do return class_name.strip_extension("Phase").to_lower
+       redef fun to_s do return class_name.strip_extension("Phase").to_snake_case
 
        # Is the phase globally disabled?
        # A disabled phase is not called automatically called by `ToolContext::run_phases` and cie.