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 defaults to parse_params #9

Open
bbros-dev opened this issue Mar 29, 2020 · 2 comments
Open

Add defaults to parse_params #9

bbros-dev opened this issue Mar 29, 2020 · 2 comments
Assignees

Comments

@bbros-dev
Copy link

Taking on board the feedback in PR #8, I'm feeding back some changes I've found useful.

For consideration:

# DESC: Variable defaults
# ARGS: None.
# OUTS: Variables with default values set.
function defaults() {
  verbose=false no_colour=false cron=false outfile=-
}

...

function parse_params() {
....
  local param
  defaults
  # now enjoy the options in order and nicely split until we see --
....
@bbros-dev bbros-dev changed the title Idea: Add defaults to parse_params() Idea: Add defaults to parse_params Mar 29, 2020
@ralish ralish self-assigned this Nov 8, 2020
@ralish ralish changed the title Idea: Add defaults to parse_params Idea: Add defaults to parse_params Nov 8, 2020
@ralish ralish changed the title Idea: Add defaults to parse_params Add defaults to parse_params Jan 16, 2021
@BorjaEst
Copy link

Could be merged to the template?
I find that pretty useful, specially for noobies

@felipepodesta
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants