You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, a docstring comment at the top should then be mandatory.
The downside of providing a --help flag is the significant amount of boilerplate code it requires. To illustrate this: is-ssh-enabled has 24 LOC – only 6 of which are actual logic, and 18 are for processing the --help flag.
The text was updated successfully, but these errors were encountered:
Our bash scripts currently don’t follow a consistent pattern in regards to whether they provide a
--help
option. E.g.,change-hostname
privileged script has it, whereasread-update-log
privileged script doesn’t have it.My suggestion would be:
--help
flag./opt/tinypilot/scripts
folder.--help
flag.The downside of providing a
--help
flag is the significant amount of boilerplate code it requires. To illustrate this:is-ssh-enabled
has 24 LOC – only 6 of which are actual logic, and 18 are for processing the--help
flag.The text was updated successfully, but these errors were encountered: