This commit is contained in:
Burt Bielicki 2016-05-03 14:40:49 -07:00
Родитель 120165c2d9
Коммит a53071d2e7
2 изменённых файлов: 14 добавлений и 10 удалений

Просмотреть файл

@ -232,11 +232,13 @@ Command
Arguments Arguments
--foobar2 -fb2 [Required]: one line partial sentence --foobar2 -fb2 [Required]: one line partial sentence
paragraph(s) paragraph(s)
--foobar -fb : one line partial sentence
text, markdown, etc. --foobar -fb : one line partial sentence
text, markdown, etc.
Values from: az vm list, default
Values from: az vm list, default
--foobar3 -fb3 : the foobar3 --foobar3 -fb3 : the foobar3
--help -h : show this help message and exit --help -h : show this help message and exit
''' '''
@ -295,11 +297,13 @@ Command
Arguments Arguments
--foobar2 -fb2 [Required]: one line partial sentence --foobar2 -fb2 [Required]: one line partial sentence
paragraph(s) paragraph(s)
--foobar -fb : one line partial sentence
text, markdown, etc. --foobar -fb : one line partial sentence
text, markdown, etc.
Values from: az vm list, default
Values from: az vm list, default
--help -h : show this help message and exit --help -h : show this help message and exit
Examples Examples
foo example foo example

Просмотреть файл

@ -195,8 +195,8 @@ vm_param_aliases = {
}, },
} }
class VMImageFieldAction(argparse.Action): class VMImageFieldAction(argparse.Action): #pylint: disable=too-few-public-methods
def __call__(self, parser, namespace, values, option_string = None): def __call__(self, parser, namespace, values, option_string=None):
image = values image = values
match = re.match('([^:]*):([^:]*):([^:]*):([^:]*)', image) match = re.match('([^:]*):([^:]*):([^:]*):([^:]*)', image)