Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
da4d9ff6
Commit
da4d9ff6
authored
Jul 02, 2015
by
Hnk Reno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docstring to clarify usage of -c option
parent
e57e0808
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
editconf.py
tools/editconf.py
+3
-1
No files found.
tools/editconf.py
View file @
da4d9ff6
...
...
@@ -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 <CHARACTER>] [-
t] NAME=VAL [NAME=VAL ...]"
)
sys
.
exit
(
1
)
# parse command line arguments
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment