diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c
index 7ee7a5c..495b27e 100644
--- a/src/ostree/ot-builtin-remote.c
+++ b/src/ostree/ot-builtin-remote.c
@@ -126,7 +126,7 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca
                                     branches->len);
       g_free (key);
     }
-  else if (!strcmp (op, "show"))
+  else if (!strcmp (op, "show-url"))
     {
       gs_free char *url;
 
@@ -134,7 +134,7 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca
       if (url == NULL)
         goto out;
 
-      g_print("%s\n", url);
+      g_print ("%s\n", url);
     }
   else
     {
diff --git a/tests/test-basic.sh b/tests/test-basic.sh
index 8c32b09..dd6103b 100755
--- a/tests/test-basic.sh
+++ b/tests/test-basic.sh
@@ -305,3 +305,8 @@ assert_file_has_content repo/config 'tls-permissive=true'
 assert_file_has_content repo/config 'remote\.example\.com'
 echo "ok remote add with set"
 
+cd ${test_tmpdir}
+${CMD_PREFIX} ostree --repo=repo remote show-url aremote > aremote-url.txt
+assert_file_has_content aremote-url.txt 'http.*remote\.example\.com/repo'
+echo "ok remote show-url"
+
