lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -486,7 +486,7 @@ proc echo_help*(expected: seq[Tparameter_specification] = @[],
|
|||
echo line
|
||||
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
# Simply tests code embedded in docs.
|
||||
let
|
||||
parsed_param1 = new_parsed_parameter(PK_FLOAT, 3.41)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ proc process_commandline(): Tcommandline_results =
|
|||
echo "Will use progress type $1" % [result.options[PARAM_PROGRESS[0]].str_val]
|
||||
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
let args = process_commandline()
|
||||
for param in args.positional_parameters:
|
||||
echo "Downloading $1" % param.str_val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue