|
@@ -61,7 +61,10 @@
|
|
|
|
|
|
# Convert the default value of an option to the string used in
|
|
# Convert the default value of an option to the string used in
|
|
# the help message
|
|
# the help message
|
|
-def value_to_help(value):
|
|
|
|
|
|
+def get_help(opt):
|
|
|
|
+ if opt["name"] == "libdir":
|
|
|
|
+ return 'system default'
|
|
|
|
+ value = opt["value"]
|
|
if isinstance(value, list):
|
|
if isinstance(value, list):
|
|
return ",".join(value)
|
|
return ",".join(value)
|
|
if isinstance(value, bool):
|
|
if isinstance(value, bool):
|
|
@@ -88,7 +91,7 @@ def sh_print(line=""):
|
|
def help_line(left, opt, indent, long):
|
|
def help_line(left, opt, indent, long):
|
|
right = f'{opt["description"]}'
|
|
right = f'{opt["description"]}'
|
|
if long:
|
|
if long:
|
|
- value = value_to_help(opt["value"])
|
|
|
|
|
|
+ value = get_help(opt)
|
|
if value != "auto" and value != "":
|
|
if value != "auto" and value != "":
|
|
right += f" [{value}]"
|
|
right += f" [{value}]"
|
|
if "choices" in opt and long:
|
|
if "choices" in opt and long:
|