Skip to content

Commit

Permalink
Merge pull request #991 from WolframResearch/bugfix/fix-script-arguments
Browse files Browse the repository at this point in the history
Bugfix: Handle script command line arguments when using kernel directly
  • Loading branch information
rhennigan authored Dec 18, 2024
2 parents aa243a4 + 6a3324d commit f721c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/BuildPaclet.wls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ result = checkResult @ cicd`BuildPaclet[
(* ::**************************************************************************************************************:: *)
(* ::Subsection::Closed:: *)
(*Install*)
If[ MemberQ[ $ScriptCommandLine, "-i"|"--install"|"--install=true" ],
If[ MemberQ[ $scriptCommandLine, "-i"|"--install"|"--install=true" ],
archive = cFile @ result[ "PacletArchive" ];
cicd`ConsoleNotice @ SequenceForm[ "Installing paclet file: ", archive ];
installed = cicd`ScriptConfirmBy[ PacletInstall[ archive, ForceVersionInstall -> True ], PacletObjectQ ];
Expand Down
1 change: 1 addition & 0 deletions Scripts/Common.wl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ messageString[ ___ ] := "-- Message text not found --";
(* ::**************************************************************************************************************:: *)
(* ::Section::Closed:: *)
(*Definitions*)
$scriptCommandLine := Replace[ $ScriptCommandLine, { } :> $CommandLine ];

$$ws = WhitespaceCharacter...;
$$id = "\"" ~~ Except[ "\"" ].. ~~ "\"";
Expand Down

0 comments on commit f721c82

Please sign in to comment.