diff --git a/dandi/cli/command.py b/dandi/cli/command.py index c49542fe1..aa1871c45 100644 --- a/dandi/cli/command.py +++ b/dandi/cli/command.py @@ -114,16 +114,19 @@ def main(ctx, log_level, pdb=False): lambda r: r.name != "pyout" and not r.name.startswith("pyout.") ) root.addHandler(handler) + exts = ( + "dandischema", + "h5py", + "hdmf", + "pynwb", + "requests", + "urllib3", + ) lgr.info( - "dandi v%s, dandischema v%s, hdmf v%s, pynwb v%s, h5py v%s", + "dandi %s, " + + ", ".join("%s %s" % (e, get_module_version(e)) for e in sorted(exts)), __version__, - get_module_version("dandischema"), - get_module_version("h5py"), - get_module_version("hdmf"), - get_module_version("pynwb"), - get_module_version("requests"), - get_module_version("urllib3"), extra={"file_only": True}, ) lgr.info("sys.argv = %r", sys.argv, extra={"file_only": True})