From: Jonathan Lebon Date: Fri, 1 Sep 2017 19:44:49 +0000 (-0400) Subject: bin/main: Print usage when no command given X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~32^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=48364459b8570c11116a8783c3914c0150e8b385;p=ostree.git 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 --- diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c index 011ae16c..eda787b4 100644 --- a/src/ostree/ot-main.c +++ b/src/ostree/ot-main.c @@ -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; }