projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
662ad5b
)
bin/main: Print usage when no command given
author
Jonathan Lebon
<jlebon@redhat.com>
Fri, 1 Sep 2017 19:44:49 +0000
(15:44 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Wed, 13 Sep 2017 14:32:19 +0000
(14:32 +0000)
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
patch
|
blob
|
history
diff --git
a/src/ostree/ot-main.c
b/src/ostree/ot-main.c
index 011ae16c3bcc75da0493c11c188755522130831b..eda787b46cfa1afc1420d8d8867abe9f3b73bc7b 100644
(file)
--- 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;
}