Re: [BuildStream] bst CLI design and consistency (UI)



On Fri, 2018-11-30 at 14:44 -0500, Chandan Singh wrote:
shell
~~~~~

Rather than introducing a new `-e` syntax for handling multiple elements, I am
wondering if we can do something similar by removing all positional arguments
except ELEMENTS, i.e. removing the CMD positional argument. Something like:

1. Convert COMMAND positional argument to a `-c`/`---command` optional
   argument. This will be a BREAKING change.
2. Add support for multiple elements.

I'd like to avoid the need for `--command`. Command wrappers on UNIX
systems typically use `--` as separator where that's necessary. Is
there no way with `Click` we can support `--` between element arguments
and command?

If `Click` has no built-in support for this, can't we do it ourselves,
i.e., declare a single `Click` argument list for both? I don't know
whether we can provide proper help/usage in that case, but worst case
we could still explain usage in the help text for that combined option.
And with mandatory .bst extensions, we could even make `--` optional.

Cheers,
Jürg



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]