maint: update_list function can also be static
fix error issued with unrecognized --format

Introduced in the recent refactoring, fix
  "NameError: global name 'fmt' is not defined"

Add a test case
fix error issued for unfound parameters

Introduced in the recent refactoring, fix
  "NameError: global name 'param' is not defined"

Add a test case