Replies: 1 comment 1 reply
-
Yes, I agree that we should do that. Both Git and Mercurial do it. I just haven't gotten around to it. The option would go in the One thing that complicates it a bit is aliases. I know that Git lets you define an alias that adds another alias, so you can do Oh, another thing that may complicate it is the planned support for reading configs from I don't know if there are any security issues to think about. |
Beta Was this translation helpful? Give feedback.
-
What do you think about having a
--config TOML_STRING
global JJ option? This could replace the--color
option, you would do--config ui.color=always
instead. You could also do--config ui.diff-editor=vimdiff
. You could also merge in an extra TOML file with--config "$(cat extra-config.toml)"
on bash.The downside of TOML is that it often requires line breaks, which are inconvenient on the command-line. However, that can be ameliorated by allowing repetition of
--config
options.It could also be shortened to
-c
, assuming that global options are in a separate namespace from the subcommand options.This came up as I was thinking about whether the
resolve
command discussed in #18 needs a--tool
option.Beta Was this translation helpful? Give feedback.
All reactions