Skip to content

Commit 9b632a9

Browse files
committed
Allow multiple configuration files on command line
Fixes #133 as far as I'm concerned
1 parent b3e66e2 commit 9b632a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tmuxp/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,11 @@ def command_load(args):
399399
"""Load a session from a tmuxp session file."""
400400

401401
if isinstance(args.config, list):
402-
args.config = ' '.join(args.config)
402+
for config in args.config:
403+
new_args = argparse.Namespace(**args.__dict__)
404+
new_args.config = config
405+
command_load(new_args)
406+
return
403407

404408
if '.' == args.config:
405409
if config.in_cwd():

0 commit comments

Comments
 (0)