Skip to content

Commit

Permalink
arg_to_str
Browse files Browse the repository at this point in the history
  • Loading branch information
egafni committed Jul 11, 2016
1 parent 21adbd8 commit 38385d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosmos/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 38385d7

Please sign in to comment.