Ver código fonte

Fix missing argument descriptions (#303).

Dan Helfman 2 meses atrás
pai
commit
ba75958a2f
1 arquivos alterados com 2 adições e 1 exclusões
  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):
     '''
     '''