1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-04 22:53:42 +02:00

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.
This commit is contained in:
2022-09-15 21:55:29 -03:00
parent 86e4be9119
commit 5761d6bbf7

View File

@@ -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')