crystal spec spec/some_spec.cr -p
not print 10 slowest specs:
in spec code:
opts.on("-p", "--profile", "Print the 10 slowest specs") do
Spec.slowest = 10
end
i think because option -p processed by compiler and need to rename it.
You can do crystal spec/some_spec.cr -- -p
The -- will tell the compiler to stop handling arguments, and the rest will go to the executed program
so this is ok?
Most helpful comment
You can do
crystal spec/some_spec.cr -- -pThe
--will tell the compiler to stop handling arguments, and the rest will go to the executed program