I have aliases for many commands with their verbose flags, e.g.:
alias ninja='ninja --verbose -j 0'
Is there a mechanism in bash, where I can deactivate this flag afterwards?
I tried stuff like:
ninja --verbose=0
but that didn't work out.
I know that I can hide my output with /dev/null
or that I can execute the binary directly with /path/to/ninja
, but that's not the intent of my question. The answer might be command specific and depends on which mechanism for passing parameters the appropriate program uses, e.g. getopts
. Anyways, I am looking forward to your help.
EDIT:
From comments I learned, that command ninja
or escaping like nin\ja
will ignore the complete alias, but not a specific parameter.