Crystal: spec profile not working with option -p

Created on 30 Mar 2018  路  2Comments  路  Source: crystal-lang/crystal

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.

question

Most helpful comment

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

All 2 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

costajob picture costajob  路  3Comments

lgphp picture lgphp  路  3Comments

oprypin picture oprypin  路  3Comments

pbrusco picture pbrusco  路  3Comments

TechMagister picture TechMagister  路  3Comments