From 48364459b8570c11116a8783c3914c0150e8b385 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 1 Sep 2017 15:44:49 -0400 Subject: [PATCH] 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 --- src/ostree/ot-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }