Skip to content

Commit

Permalink
Update manpage.template: 'storage' has no 'actions' T_T
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin authored Feb 22, 2025
1 parent 2c434ac commit 964767a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manpage.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Display YunoHost packages versions
{# each categories #}
{% for name, value in categories.items() %}
.SH YUNOHOST {{ name.upper() }}
usage: yunohost {{ name }} {{ '{' }}{{ ",".join(value["actions"].keys()) }}{{ '}' }}
usage: yunohost {{ name }} {{ '{' }}{{ ",".join(value.get("actions", {}).keys()) }}{{ '}' }}
\&...
.SS "description:"
.IP
{{ value["category_help"] }}

{# each command of each category #}
{% for action, action_value in value["actions"].items() %}
{% for action, action_value in value.get("actions", {}).items() %}
.SS "yunohost {{ name }} {{ action }} \
{% for argument_name, argument_value in action_value.get("arguments", {}).items() %}\
{% set required=(not str(argument_name).startswith("-")) or argument_value.get("extra", {}).get("required", False) %}\
Expand Down

0 comments on commit 964767a

Please sign in to comment.