Skip to main content
2 events
when toggle format what by license comment
Sep 22, 2020 at 21:08 comment added bubla What you describe is a little bit dirty, as it changes the generated code. It would be cleaner to have sourcing of sub.conf in the user section of the script, and have something like _arg_user=${_arg_user:-$user} to assign value of user to _arg_user if the latter is empty, i.e. not used on the command-line. Aside from that, Argbash supports default values.
Jun 13, 2019 at 14:12 history answered WhiskerBiscuit CC BY-SA 4.0