From da4d9ff6078b7e3f856feb215fd4a66e513bfa26 Mon Sep 17 00:00:00 2001 From: Hnk Reno Date: Thu, 2 Jul 2015 19:27:05 +0200 Subject: [PATCH] update docstring to clarify usage of -c option --- tools/editconf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/editconf.py b/tools/editconf.py index e3ebfcf2..d665f861 100755 --- a/tools/editconf.py +++ b/tools/editconf.py @@ -14,6 +14,8 @@ # # NAME VALUE # +# If the -c option is given, then the supplied character becomes the comment character +# # If the -w option is given, then setting lines continue onto following # lines while the lines start with whitespace, e.g.: # @@ -24,7 +26,7 @@ import sys, re # sanity check if len(sys.argv) < 3: - print("usage: python3 editconf.py /etc/file.conf [-s] [-w] [-t] NAME=VAL [NAME=VAL ...]") + print("usage: python3 editconf.py /etc/file.conf [-s] [-w] [-c ] [-t] NAME=VAL [NAME=VAL ...]") sys.exit(1) # parse command line arguments