Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xaedes
5y ago
0 comments
Save
Share
This would help a bit: Don't accept the "--do-it" as first parameter, make it obligatory to be the last.
0 comments
3 comments · 2 top-level
top
newest
oldest
_ikke_
5y ago
· 1 in thread
my_command() { command my_command "$@" --do-it }
xaedes
OP
5y ago
Good point. Stuff like this is why I wrote "a bit". Thank you for providing an example, why it wont be enough.
X6S1x6Okd1st
5y ago
If someone is a programmer and is trying to disable safety features making it slightly harder to do so doesn't really seem like the solution.
j
/
k
navigate · click thread line to collapse