Unverified Commit 8c5fa785 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

let user apply arguments multiple times


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 4839b1fc
Pipeline #22380 passed with stages
in 5 minutes and 38 seconds
...@@ -13,7 +13,7 @@ spec: ...@@ -13,7 +13,7 @@ spec:
tier: web tier: web
spec: spec:
containers: containers:
- name: import-process-administrator-container - name: import-process-delete-container
args: [ # Customise to match your needs args: [ # Customise to match your needs
"--record-set-filter", "<id>", "--record-set-filter", "<id>",
"--record-filter", "<id>", "--record-filter", "<id>",
......
/* /*
* Import Process Delete * Import Process Delete
* Copyright (C) 2020 Memoriav * Copyright (C) 2021 Memoriav
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by * it under the terms of the GNU Affero General Public License as published by
...@@ -37,21 +37,25 @@ trait ArgParser { ...@@ -37,21 +37,25 @@ trait ArgParser {
.action((v, c) => c.copy(recordSetFilters = c.recordSetFilters :+ v)) .action((v, c) => c.copy(recordSetFilters = c.recordSetFilters :+ v))
.valueName("<id>") .valueName("<id>")
.text("record set id filter") .text("record set id filter")
.unbounded()
.optional(), .optional(),
opt[String]('i', "institution-filter") opt[String]('i', "institution-filter")
.action((v, c) => c.copy(institutionFilters = c.institutionFilters :+ v)) .action((v, c) => c.copy(institutionFilters = c.institutionFilters :+ v))
.valueName("<id>") .valueName("<id>")
.text("institution id filter") .text("institution id filter")
.unbounded()
.optional(), .optional(),
opt[String]('r', "record-filter") opt[String]('r', "record-filter")
.action((v, c) => c.copy(recordFilters = c.recordFilters :+ v)) .action((v, c) => c.copy(recordFilters = c.recordFilters :+ v))
.valueName("<id>") .valueName("<id>")
.text("record id filter") .text("record id filter")
.unbounded()
.optional(), .optional(),
opt[String]('s', "session-filter") opt[String]('s', "session-filter")
.action((v, c) => c.copy(sessionFilters = c.sessionFilters :+ v)) .action((v, c) => c.copy(sessionFilters = c.sessionFilters :+ v))
.valueName("<id>") .valueName("<id>")
.text("session id filter") .text("session id filter")
.unbounded()
.optional(), .optional(),
opt[Calendar]('a', "created-after") opt[Calendar]('a', "created-after")
.action((v, c) => c.copy(createdAfterFilter = Some(v))) .action((v, c) => c.copy(createdAfterFilter = Some(v)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment