summaryrefslogtreecommitdiffstats
path: root/cli/objects
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-05-10 16:51:55 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-05-16 15:17:58 +0200
commiteb5091d3744126b200c012d8c6a52e4b9c8cff22 (patch)
treef4ecd0ad1c919727b0ac348d89ed324b2a44d593 /cli/objects
parentfca68171b66db9b39d6b13aa55ec1525f04b0d45 (diff)
restore image: add tiptorrent transfer method
Makes --type optional, defaults to tiptorrent when option is missing.
Diffstat (limited to 'cli/objects')
-rw-r--r--cli/objects/images.py7
1 files 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],