Skip to content

Conversation

@joachimhs
Copy link
Collaborator

Adding scriptOutputDir, and renaming the old SCRIPT_OUTPUT_DIR to SCRIPT_DIR.

Comment on lines 187 to 189
return argMap.containsKey(SCRIPT)
|| argMap.containsKey(SCRIPT_OUTPUT_DIR)
|| argMap.containsKey(SCRIPT_DIR)
|| argMap.containsKey(SCRIPT_OUTPUT_FILE);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like only SCRIPT and SCRIPT_DIR should be checked here.
The hasScripts() is used to enable the noServer option by default so it seems right when it would not be affected by the output dir argument.

case SCRIPT_DIR:
{
if (!p.isEmpty()) {
settings.setOutputDir(p);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look right - it should rather be setScriptDir(p). In fact, get/setOuptutDir() should be removed as it is replaced by get/setScriptOutputDir() (you would need to check where getOutputDir() is used and replace it with getScriptOutputDir())

Copy link
Collaborator

@jbachorik jbachorik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for looking into this problem.
There are just a few things that needs to be cleared up before I can approve.

@jbachorik
Copy link
Collaborator

Hi @joachimhs , I wonder - will you be able to finish this PR?
I would like to cut a new release in not so distant future and it would be awesome to get your fixes in.

@jbachorik
Copy link
Collaborator

I am sorry. There was no activity on this PR for a very long time - I am going to address the problem in #593 and add an attribution to you, Joachim, there. I hope it is ok.

@jbachorik jbachorik closed this Dec 19, 2022
jbachorik added a commit that referenced this pull request Dec 20, 2022
Properly handle script arguments.
Based on #579 authored by @joachimhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants