fix(args): allow boolean arguments
This commit is contained in:
parent
a4fd589592
commit
39dacf09a0
@ -35,7 +35,13 @@
|
||||
{%- if args|length > 0 %}
|
||||
{%- for k,v in args -%}
|
||||
{%- if not k or not v %}{% continue %}{% endif -%}
|
||||
{%- if v == True -%}
|
||||
--{{ k }}
|
||||
{%- elif v == False -%}
|
||||
--no-{{ k }}
|
||||
{%- else -%}
|
||||
--{{ k }}={{ v }}
|
||||
{%- endif -%}
|
||||
{%- if not loop.last %} {% endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
|
Loading…
Reference in New Issue
Block a user