From eb5091d3744126b200c012d8c6a52e4b9c8cff22 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 10 May 2022 16:51:55 +0200 Subject: restore image: add tiptorrent transfer method Makes --type optional, defaults to tiptorrent when option is missing. --- cli/objects/images.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/objects/images.py b/cli/objects/images.py index cf42dd4..270dfc3 100644 --- a/cli/objects/images.py +++ b/cli/objects/images.py @@ -35,9 +35,10 @@ class OgImage(): help='Image id to be restored') parser.add_argument('--type', nargs='?', - required=True, - choices=['unicast', 'unicast-direct'], - help='Image id to be restored') + required=False, + choices=['unicast', 'unicast-direct', 'tiptorrent'], + default='tiptorrent', + help='Transfer method. (Default: tiptorrent)') parser.add_argument('--repo', nargs='?', default=urlparse(rest.URL).netloc.split(':')[0], -- cgit v1.2.3-18-g5258