Lengths are specified as lengths on the command line.
commit4b2c76e51fecefd786e115d0fc88846d85c8f99f
authorHenrik Tidefelt <tidefelt@isy.liu.se>
Fri, 7 Nov 2008 11:34:04 +0000 (7 12:34 +0100)
committerHenrik Tidefelt <tidefelt@isy.liu.se>
Fri, 7 Nov 2008 11:34:04 +0000 (7 12:34 +0100)
treef1ba36fa4973c7a46541063a5c044ce72b0ab8ab
parent17aa243012e5f5accf93c89fc8d848ca410ca10e
Lengths are specified as lengths on the command line.

Unlike the --unit= option, the tolerance parameters of length type may only use standard lengths.  Perhaps user-defined lengths with --unit= should also be forbidden.  Otherwise, the validity of command line arguments depends on the source in a rather strange manner.  One difference between the tolerance parameters and --unit= , though, is that the argument to --unit= should be _just_ the unit, and not a complete length.  Anyway, this is something to think about later...

Anyway, it feels good to have factored out the interpretation of length parameters from the main function (it is now located in ShapesScanner::strtoLength instead).
doc/parts/algo-tol/tolerances.sxml
source/main.cc
source/shapesscanner.cc
source/shapesscanner.h