It may have a different meaning, and the usage screen is not helpful.
Print the usage screen only when the command is not found.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
g_set_prgname (argv[0]);
ret = ostree_run (argc, argv, commands, &error);
- if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
- ostree_usage (commands, TRUE);
if (error != NULL)
{
{
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Unknown command '%s'", command_name);
+ ostree_usage (commands, TRUE);
}
}