[#122] preset_grpc: Allow specify --local without value

Now `--local` is flag, so it is possible to specify `--local`
instead of `--local True` or '--local False'.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-01-24 16:25:39 +03:00
parent 339e4e52ec
commit 4ff87f9bf6

View file

@ -34,7 +34,7 @@ parser.add_argument('--ignore-errors', help='Ignore preset errors', action='stor
parser.add_argument('--workers', help='Count of workers in preset. Max = 50, Default = 50', default=50)
parser.add_argument('--sleep', help='Time to sleep between containers creation and objects upload (in seconds), '
'Default = 8', default=8)
parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', default=False)
parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', action='store_true')
args: Namespace = parser.parse_args()
print(args)