浏览代码

Fix missing argument descriptions (#303).

Dan Helfman 5 月之前
父节点
当前提交
ba75958a2f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      borgmatic/commands/arguments.py

+ 2 - 1
borgmatic/commands/arguments.py

@@ -297,7 +297,6 @@ def make_argument_description(schema, flag_name):
     an example or additional information as appropriate based on its type. Return the updated
     an example or additional information as appropriate based on its type. Return the updated
     description for use in a command-line argument.
     description for use in a command-line argument.
     '''
     '''
-    # FIXME: Argument descriptions are apparently broken right now.
     description = schema.get('description')
     description = schema.get('description')
     schema_type = schema.get('type')
     schema_type = schema.get('type')
 
 
@@ -317,6 +316,8 @@ def make_argument_description(schema, flag_name):
 
 
     description = description.replace('%', '%%')
     description = description.replace('%', '%%')
 
 
+    return description
+
 
 
 def add_array_element_arguments_from_schema(arguments_group, schema, unparsed_arguments, flag_name):
 def add_array_element_arguments_from_schema(arguments_group, schema, unparsed_arguments, flag_name):
     '''
     '''