diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-09-08 00:11:19 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2021-09-08 00:11:19 +0530 |
commit | c1530dbf24d7a5203915706c584720d1ed9cd26a (patch) | |
tree | e1a0ddf6e6bae74170cc630467c7fe42d04d688f /README.md | |
parent | 683692a48b8b379e418062f4366c344c264b0996 (diff) |
moved the getopts loop to the main function
There's no need to have the getopts loop outside the main function. The
main function can be called as `main "$@"` to accept positional
parameters as input which then goes on to `getopts` which, by default,
uses `"$@"` unless a positional parameters is explicitly given.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions