From 5761d6bbf7951197bf8a933f0634ef43f0363223 Mon Sep 17 00:00:00 2001 From: Luciano Santos Date: Thu, 15 Sep 2022 21:55:29 -0300 Subject: [PATCH] Add information about osc vc using the EDITOR envar to the help output While for some developers/veteran Linux users this might be obvious, many people will probably find it hard to know why osc vc is using editor X instead of Y though. --- osc/commandline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 076298ad..74287794 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -8849,6 +8849,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. email = user@defined.email or can be specified via mailaddr environment variable. + + By default, osc vc opens the program specified by the EDITOR + environment variable (and it uses Vim if that variable is not set) with + a temporary file that should replace the *.changes file when saved by + the editor, or discarded otherwise. """ if opts.message and opts.file: raise oscerr.WrongOptions('\'--message\' and \'--file\' are mutually exclusive')