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
Prefer flags to args. It’s a bit more typing, but it makes it much clearer what is going on. It also makes it easier to make changes to how you accept input in the future. Sometimes when using args, it’s impossible to add new input without breaking existing behavior or creating ambiguity.
Putting my novice hat on, I could easily see myself not connecting these two pieces of advice because of how far apart they are separated in the text and how the latter is neither a sub-point of the former nor using very strong phrasing for "this is an exception".
It'd probably be a good idea to tweak the phrasing of the first one.
Maybe something like this:
Prefer flags to args. Save args for when you have one primary input field that can be repeated, like a path or URL. It’s a bit more typing, but it makes it much clearer what is going on. It also makes it easier to make changes to how you accept input in the future. Sometimes when using args, it’s impossible to add new input without breaking existing behavior or creating ambiguity.
The text was updated successfully, but these errors were encountered:
Putting my novice hat on, I could easily see myself not connecting these two pieces of advice because of how far apart they are separated in the text and how the latter is neither a sub-point of the former nor using very strong phrasing for "this is an exception".
It'd probably be a good idea to tweak the phrasing of the first one.
Maybe something like this:
The text was updated successfully, but these errors were encountered: