From 38385d73c290f3c5f6506f746afaa2197ed9e3ee Mon Sep 17 00:00:00 2001 From: Erik Gafni Date: Mon, 11 Jul 2016 16:15:02 -0700 Subject: [PATCH] arg_to_str --- cosmos/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmos/api.py b/cosmos/api.py index 3c5b5dfa..676ca7c6 100644 --- a/cosmos/api.py +++ b/cosmos/api.py @@ -28,7 +28,7 @@ def load_input(out_file): pass -def _arg_to_str(name, value): +def arg_to_str(name, value): if value: if value == True: return name @@ -54,7 +54,7 @@ def args_to_str(*args): '--use-me 123' """ - return " \\\n".join(_arg_to_str(k, v) for k, v in args if _arg_to_str(k, v) != '') + return " \\\n".join(arg_to_str(k, v) for k, v in args if arg_to_str(k, v) != '') # arg = _arg_to_str # args = args_to_str