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:
tier: web
spec:
containers:
- name: import-process-administrator-container
- name: import-process-delete-container
args: [ # Customise to match your needs
"--record-set-filter", "<id>",
"--record-filter", "<id>",
......
/*
* Import Process Delete
* Copyright (C) 2020 Memoriav
* Copyright (C) 2021 Memoriav
*
* 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
......@@ -37,21 +37,25 @@ trait ArgParser {
.action((v, c) => c.copy(recordSetFilters = c.recordSetFilters :+ v))
.valueName("<id>")
.text("record set id filter")
.unbounded()
.optional(),
opt[String]('i', "institution-filter")
.action((v, c) => c.copy(institutionFilters = c.institutionFilters :+ v))
.valueName("<id>")
.text("institution id filter")
.unbounded()
.optional(),
opt[String]('r', "record-filter")
.action((v, c) => c.copy(recordFilters = c.recordFilters :+ v))
.valueName("<id>")
.text("record id filter")
.unbounded()
.optional(),
opt[String]('s', "session-filter")
.action((v, c) => c.copy(sessionFilters = c.sessionFilters :+ v))
.valueName("<id>")
.text("session id filter")
.unbounded()
.optional(),
opt[Calendar]('a', "created-after")
.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