Skip to content

Commit

Permalink
sort args in output
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Aug 16, 2019
1 parent 9cef5aa commit f5082bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ def __init__(
pass
if config_to_load is not None:
pass
# TODO: Switch this message to a debug message using _LOGGER
self.debug("\nUsing custom config file: {}".format(config_to_load))
else:
# No custom config file specified. Check for default
Expand Down Expand Up @@ -514,7 +513,7 @@ def start_pipeline(self, args=None, multi=False):

# self.info all arguments (if any)
self.info("\n### Arguments passed to pipeline:\n")
for arg, val in (vars(args) if args else dict()).items():
for arg, val in sorted((vars(args) if args else dict()).items()):
argtext = "`{}`".format(arg)
valtext = "`{}`".format(val)
self.info("* {}: {}".format(argtext.rjust(20), valtext))
Expand Down Expand Up @@ -922,6 +921,7 @@ def make_hash(o):
self._report_command(cmd)
return 0, 0

self.debug("Command: {}".format(cmd))
param_list = parse_cmd(cmd, shell)
# cast all commands to str and concatenate for hashing
conc_cmd = "".join([str(x["args"]) for x in param_list])
Expand Down

0 comments on commit f5082bc

Please sign in to comment.