Skip to content

Commit 2d10e6f

Browse files
committed
1.) Update misleading text for -c, --config option
2.) Added missing "--help" alias 3.) Removed unused -r, --resource option
1 parent 33a9f27 commit 2d10e6f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/supremm/supremmconf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def usage():
1515
""" print usage """
1616
print("usage: {0} [OPTS]".format(os.path.basename(__file__)))
1717
print(" -d --debug set log level to debug")
18-
print(" -c --config specify the configuration file")
19-
print(" -r --resources output the configuration data for all enabled resources")
18+
print(" -c --config specify the path to the configuration file")
2019
print(" -s --section SECTION output the configuration data from the specified section")
2120
print(" -i --item ITEM output the configuration data for the specified item")
2221
print(" -h --help print this help message")
@@ -29,7 +28,7 @@ def getoptions():
2928
"section": None,
3029
"item" : None}
3130

32-
opts, _ = getopt(sys.argv[1:], "dc:s:i:h", ["debug", "config=", "section=", "item="])
31+
opts, _ = getopt(sys.argv[1:], "dc:s:i:h", ["debug", "config=", "section=", "item=", "help"])
3332

3433
for opt in opts:
3534
if opt[0] in ("-d", "--debug"):

0 commit comments

Comments
 (0)