Skip to content

Commit 7ab8d1b

Browse files
committed
xapp-gpu-offload: Fix argument handling for the offload target.
Arguments after the 'command' argument should be treated as args for 'command'
1 parent 97ce8df commit 7ab8d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/xapp-gpu-offload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def exec_command(_id, command):
5656

5757
parser = argparse.ArgumentParser(description="Launch a program using an alternate GPU, or if there are no others, like a normal program.",
5858
formatter_class=argparse.RawDescriptionHelpFormatter)# epilog=mode_help)
59-
parser.add_argument("command", type=str, nargs="*", help="The program to run and arguments.")
59+
parser.add_argument("command", type=str, nargs=argparse.REMAINDER, help="The program to run and arguments.")
6060
parser.add_argument("-i", "--id", help="Specify the GPU to use. If omitted, the first non-default GPU will be used.",
6161
action="store", type=int, default=-1)
6262
parser.add_argument("-l", "--list-gpus", help="List available GPUs.",

0 commit comments

Comments
 (0)