summaryrefslogtreecommitdiff
path: root/src/ostree/main.c
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2015-11-06 12:06:26 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2015-11-16 11:07:55 +0100
commitb393e5a2e970de97cd5e59861f00589313fc84c6 (patch)
tree156b5864f5c14736e3765c00632f9dfdb6dab930 /src/ostree/main.c
parentf506644830c269ece5dbf3aaa4874593c4d85b2c (diff)
downloadostree-b393e5a2e970de97cd5e59861f00589313fc84c6.tar.gz
ostree: do not print the usage on each G_IO_ERROR_NOT_SUPPORTED
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>
Diffstat (limited to 'src/ostree/main.c')
-rw-r--r--src/ostree/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ostree/main.c b/src/ostree/main.c
index 8842bf34..99d7d916 100644
--- a/src/ostree/main.c
+++ b/src/ostree/main.c
@@ -75,8 +75,6 @@ main (int argc,
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)
{