You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: torchci/lib/bot/pytorchBotHandler.ts
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -532,9 +532,13 @@ The explanation needs to be clear on why this is needed. Here are some good exam
532
532
is_pr_comment: boolean=true
533
533
){
534
534
letargs;
535
+
letsplit_args: string[]=[];
536
+
535
537
try{
536
538
constparser=getParser();
537
-
args=parser.parse_args(shlex.split(inputArgs));
539
+
540
+
split_args=shlex.split(inputArgs);
541
+
args=parser.parse_args(split_args);
538
542
}catch(err: any){
539
543
// If the args are invalid, comment with the error + some help.
540
544
awaitthis.addComment(
@@ -546,7 +550,12 @@ The explanation needs to be clear on why this is needed. Here are some good exam
546
550
return;
547
551
}
548
552
549
-
if(args.help){
553
+
// if help is present as an option on the main command, or -h or --help is in any location in the args (parseargs fails to get -h at the start of the args)
0 commit comments