SCEX test code #135

Merged
meierj merged 13 commits from mueller/scex-test-code into develop 2022-02-09 14:24:51 +01:00
Showing only changes of commit acfd6bfd5e - Show all commits

View File

@ -49,6 +49,13 @@ def handle_args():
action="store_true",
help="Copy from Q7S to host instead. Always copies to current directory.",
)
parser.add_argument(
"-f",
"--flatsat",
default=False,
action="store_true",
help="Copy to flatsat instead"
)
# Positional argument(s)
parser.add_argument(
"source", help="Source files to copy or target files to copy back to host"
@ -61,6 +68,9 @@ def build_cmd(args):
cmd = "scp "
if args.recursive:
cmd += "-r "
if args.flatsat:
cmd += f"{args.source} eive@flatsat.eive.absatvirt.lw:{target}"
else:
target = args.target
if args.invert and target == "":
target = "."