mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
bin/main: Print usage when no command given
Minor regression from https://github.com/ostreedev/ostree/pull/1106. We want to print the usage text both when unknown commands are passed, as well as when no commands are passed at all. Closes: #1126 Approved by: cgwalters
This commit is contained in:
parent
662ad5b171
commit
48364459b8
@ -181,10 +181,10 @@ ostree_run (int argc,
|
||||
{
|
||||
g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"Unknown command '%s'", command_name);
|
||||
ostree_usage (commands, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
ostree_usage (commands, TRUE);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user