@@ -177,7 +177,8 @@ def list_values(self, options: Values, args: list[str]) -> None:
177177 self ._get_n_args (args , "list" , n = 0 )
178178
179179 for key , value in sorted (self .configuration .items ()):
180- write_output ("%s=%r" , key , value )
180+ for key , value in sorted (value .items ()):
181+ write_output ("%s=%r" , key , value )
181182
182183 def get_name (self , options : Values , args : list [str ]) -> None :
183184 key = self ._get_n_args (args , "get [name]" , n = 1 )
@@ -211,13 +212,15 @@ def list_config_values(self, options: Values, args: list[str]) -> None:
211212 file_exists = os .path .exists (fname )
212213 write_output ("%s, exists: %r" , fname , file_exists )
213214 if file_exists :
214- self .print_config_file_values (variant )
215+ self .print_config_file_values (variant , fname )
215216
216- def print_config_file_values (self , variant : Kind ) -> None :
217+ def print_config_file_values (self , variant : Kind , fname : str ) -> None :
217218 """Get key-value pairs from the file of a variant"""
218219 for name , value in self .configuration .get_values_in_config (variant ).items ():
219220 with indent_log ():
220- write_output ("%s: %s" , name , value )
221+ if name == fname :
222+ for confname , confvalue in value .items ():
223+ write_output ("%s: %s" , confname , confvalue )
221224
222225 def print_env_var_values (self ) -> None :
223226 """Get key-values pairs present as environment variables"""
0 commit comments