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

A40 Feature: Add main block #36

Merged
merged 1 commit into from
Sep 27, 2022
Merged

A40 Feature: Add main block #36

merged 1 commit into from
Sep 27, 2022

Conversation

Ph0enixKM
Copy link
Member

Main block captures arguments passed to the shell script - this entity is skipped if is imported from other file.

main(arg1, arg2) {
    // Code
}

The point of argumentless main is to skip some unimportant code in case if this file is imported

main {
    // Code
}

@Ph0enixKM Ph0enixKM changed the title Add main block A40 Feature: Add main block Sep 27, 2022
@Ph0enixKM Ph0enixKM merged commit 8c1fa43 into master Sep 27, 2022
@Ph0enixKM Ph0enixKM deleted the A40 branch September 27, 2022 14:00
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.

1 participant