Support short CLI flags
I frequently try to use short flags like buidler test -h, but they're ignored (or I guess interpreted as normal positional arguments).
A couple that come to mind that would be useful:
-
-h:--help -
-n:--network -
-f:--force
We agreed with @fvictorio to prioritise most used options and keep the number small as this is a limited real estate.
+1 to this, specially -h since it's pretty standard.
@alcuadrado since this is (technically) a breaking change, do you think we should include it in the new release?
Is it a breaking change? I don't get why.
Oh, there's no support for short flags at all now, right? In that case forget what I said :sweat_smile:
Added -f to the list of potentially useful short flags.
Something we need to decide: should we support this for (boolean) flags only? Or for params with arguments too?
@alcuadrado thinks that hh console -n mainnet looks weird. git seems to agree; docker doesn't (docker build -t tag-name ., for example).
IMO for all options. Git does accept this, for example git commit -m "a message" is short for --mesage="a message". There are many other examples.
git commit -m "a message"
Ugh, you are right. I looked at some git commands, thought it was a representative sample, and completely forgot about the most obvious one :sweat_smile: