]> woffs.de Git - fd/haskell-amqp-utils.git/commitdiff
default exchange is ""
authorFrank Doepper <[email protected]>
Tue, 17 Jul 2018 16:39:27 +0000 (18:39 +0200)
committerFrank Doepper <[email protected]>
Tue, 17 Jul 2018 16:39:27 +0000 (18:39 +0200)
Network/AMQP/Utils/Options.hs
README.md

index edb79df5868f544a22124be1ebaca4775fec6f3b..df0b8091cc90628a5d0b7e14b848a37d362e5cd5 100644 (file)
@@ -62,7 +62,7 @@ instance Default Args where
       5672
       False
       "/"
-      "default"
+      ""
       []
       ""
       Nothing
@@ -117,7 +117,7 @@ cOptions =
       ['x']
       ["exchange"]
       (ReqArg (\s o -> o {currentExchange = s}) "EXCHANGE")
-      ("AMQP Exchange (default: default)")
+      ("AMQP Exchange (default: \"\")")
   , Option
       ['Q']
       ["qname"]
index 62ac61eb425e21c4f6950ea06c266a8400f9e928..3f882cb9299ead107cac3d23fb2aa34cf4077c0e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ The package contains 2 binaries for commandline use.
       -R             --requeuenack                    Toggle requeue when rejected (default: True)
       -o SERVER      --server=SERVER                  AMQP Server (default: localhost)
       -y VHOST       --vhost=VHOST                    AMQP Virtual Host (default: /)
-      -x EXCHANGE    --exchange=EXCHANGE              AMQP Exchange (default: default)
+      -x EXCHANGE    --exchange=EXCHANGE              AMQP Exchange (default: "")
       -Q TEMPQNAME   --qname=TEMPQNAME                Name for temporary exclusive Queue
       -p PORT        --port=PORT                      Server Port Number (default: 5672)
       -T             --tls                            Toggle TLS (default: False)
@@ -38,9 +38,10 @@ The package contains 2 binaries for commandline use.
 ### examples
 
 connect to localhost with default credentials and attach to a new temp
-queue on exchange "default":
+queue on the default exchange (which will usually fail because attaching
+a queue to the default exchange is not allowed):
 
-    ./konsum
+    konsum
 
 Connect to a host with TLS on a custom port, authenticating with SSL
 client certificate. On every received message a callback is spawned.
@@ -90,7 +91,7 @@ Stop with ^C
       -E               --nonpersistent                    Set nonpersistent delivery
       -o SERVER        --server=SERVER                    AMQP Server (default: localhost)
       -y VHOST         --vhost=VHOST                      AMQP Virtual Host (default: /)
-      -x EXCHANGE      --exchange=EXCHANGE                AMQP Exchange (default: default)
+      -x EXCHANGE      --exchange=EXCHANGE                AMQP Exchange (default: "")
       -Q TEMPQNAME     --qname=TEMPQNAME                  Name for temporary exclusive Queue
       -p PORT          --port=PORT                        Server Port Number (default: 5672)
       -T               --tls                              Toggle TLS (default: False)
don't click here