Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add return command to exit script prematurely #164

Open
rvansa opened this issue Nov 3, 2022 · 2 comments
Open

Add return command to exit script prematurely #164

rvansa opened this issue Nov 3, 2022 · 2 comments

Comments

@rvansa
Copy link
Member

rvansa commented Nov 3, 2022

When there are multiple conditions where the script should not continue the indent is increased by 2 (4 characters) with each condition. A return command that stops current script execution would be handy.

@johnaohara
Copy link
Member

What would be the difference between a return command and the abort command?

@rvansa
Copy link
Member Author

rvansa commented Nov 3, 2022

abort completely terminates qDup run, return would just stop the current script (e.g. you found that the directory exists and you don't have to do anything with it).

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

No branches or pull requests

2 participants