Merge "Fix the missing help descripiton of "image-create""
This commit is contained in:
commit
4969251288
@ -16,6 +16,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
|
import functools
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
@ -77,6 +78,7 @@ def on_data_require_fields(data_fields, required=REQUIRED_FIELDS_ON_DATA):
|
|||||||
args = ('--' + x.replace('_', '-') for x in fields)
|
args = ('--' + x.replace('_', '-') for x in fields)
|
||||||
return ', '.join(args)
|
return ', '.join(args)
|
||||||
|
|
||||||
|
@functools.wraps(func)
|
||||||
def func_wrapper(gc, args):
|
def func_wrapper(gc, args):
|
||||||
# Set of arguments with data
|
# Set of arguments with data
|
||||||
fields = set(a[0] for a in vars(args).items() if a[1])
|
fields = set(a[0] for a in vars(args).items() if a[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user