Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new-template TYPE documentation missing #143

Closed
scop opened this issue Oct 15, 2017 · 1 comment
Closed

new-template TYPE documentation missing #143

scop opened this issue Oct 15, 2017 · 1 comment

Comments

@scop
Copy link

scop commented Oct 15, 2017

The man page for new-template says:

The first TYPE parameter is the name of an AppStream component type. For a complete list check out the documentation[2] or the help output of appstreamcli for this subcommand.

But appstreamcli new-template --help says nothing about types, and the referenced HTML documentation page doesn't contain a list either: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html

@ximion
Copy link
Owner

ximion commented Oct 22, 2017

The page you link does list all the valid component types, it's probably not super obvious though.
Additionally, if you type a wrong component type, ascli will show you a list of all the values you can choose from.

Granted, this could be displayed in a nicer way, so the patch below displays all possible values when --help is passed to the new-template subcommand.

@ximion ximion closed this as completed in eb1e066 Oct 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants