summary refs log tree commit diff stats
path: root/tests/manyloc/argument_parser
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2021-01-15 23:56:38 -0300
committerGitHub <noreply@github.com>2021-01-15 18:56:38 -0800
commit78a99587a4ad8ad17a179a7992fcda8a6e10f25a (patch)
tree18a244e09f7db4636b3bd221130f36f5d5fb8b97 /tests/manyloc/argument_parser
parent7b632f9ccbd4d15fa9fe4ca45b6fea22b259c81d (diff)
downloadNim-78a99587a4ad8ad17a179a7992fcda8a6e10f25a.tar.gz
Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
Diffstat (limited to 'tests/manyloc/argument_parser')
-rw-r--r--tests/manyloc/argument_parser/argument_parser.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manyloc/argument_parser/argument_parser.nim b/tests/manyloc/argument_parser/argument_parser.nim
index b9788a81d..e2c1b0a04 100644
--- a/tests/manyloc/argument_parser/argument_parser.nim
+++ b/tests/manyloc/argument_parser/argument_parser.nim
@@ -225,7 +225,7 @@ template raise_or_quit(exception, message: untyped) =
 
 template run_custom_proc(parsed_parameter: Tparsed_parameter,
     custom_validator: Tparameter_callback,
-    parameter: TaintedString) =
+    parameter: string) =
   ## Runs the custom validator if it is not nil.
   ##
   ## Pass in the string of the parameter triggering the call. If the
@@ -318,7 +318,7 @@ proc echo_help*(expected: seq[Tparameter_specification] = @[],
 
 
 proc parse*(expected: seq[Tparameter_specification] = @[],
-    type_of_positional_parameters = PK_STRING, args: seq[TaintedString] = @[],
+    type_of_positional_parameters = PK_STRING, args: seq[string] = @[],
     bad_prefixes = @["-", "--"], end_of_options = "--",
     quit_on_failure = true): Tcommandline_results =
   ## Parses parameters and returns results.