Merge pull request #1092 from weaveworks/1082_usage_to_stderr

Note I have rebased this and merged changes.  Closes #1082.
This commit is contained in:
Bryan Boreham committed 2015-07-07 15:43:23 +01:00
commit 0b032386c1
1 file changed
+42 -39
+42 -39
View File
@@ -24,45 +24,48 @@ IP_REGEXP="[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
CIDR_REGEXP="$IP_REGEXP/[0-9]{1,2}" CIDR_REGEXP="$IP_REGEXP/[0-9]{1,2}"
usage() { usage() {
echo "Usage:" cat >&2 <<EOF
echo "weave setup" Usage:
echo "weave launch [--password <password>] [--nickname <nickname>]"
echo " [--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]" weave setup
echo " [--no-discovery] [--init-peer-count <count>] <peer> ..." weave launch [--password <password>] [--nickname <nickname>]
echo "weave launch-router [--password <password>] [--nickname <nickname>]" [--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]
echo " [--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]" [--no-discovery] [--init-peer-count <count>] <peer> ...
echo " [--no-discovery] [--init-peer-count <count>] <peer> ..." weave launch-router [--password <password>] [--nickname <nickname>]
echo "weave launch-dns [<addr>]" [--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]
echo "weave launch-proxy [-H <endpoint>] [--with-dns | --without-dns]" [--no-discovery] [--init-peer-count <count>] <peer> ...
echo " [--no-default-ipalloc]" weave launch-dns [<addr>]
echo "weave connect [--replace] [<peer> ...]" weave launch-proxy [-H <endpoint>] [--with-dns | --without-dns]
echo "weave forget <peer> ..." [--no-default-ipalloc]
echo "weave run [--with-dns | --without-dns] [<addr> ...]" weave connect [--replace] [<peer> ...]
echo " <docker run args> ..." weave forget <peer> ...
echo "weave start [<addr> ...] <container_id>" weave run [--with-dns | --without-dns] [<addr> ...]
echo "weave attach [<addr> ...] <container_id>" <docker run args> ...
echo "weave detach [<addr> ...] <container_id>" weave start [<addr> ...] <container_id>
echo "weave dns-add <ip_address> [<ip_address> ...] <container_id> [-h <fqdn>]" weave attach [<addr> ...] <container_id>
echo "weave dns-remove <ip_address> [<ip_address> ...] <container_id> [-h <fqdn>]" weave detach [<addr> ...] <container_id>
echo "weave expose [<addr> ...] [-h <fqdn>]" weave dns-add <ip_address> [<ip_address> ...] <container_id> [-h <fqdn>]
echo "weave hide [<addr> ...]" weave dns-remove <ip_address> [<ip_address> ...] <container_id> [-h <fqdn>]
echo "weave ps [<container_id> ...]" weave expose [<addr> ...] [-h <fqdn>]
echo "weave status" weave hide [<addr> ...]
echo "weave env" weave ps [<container_id> ...]
echo "weave config" weave status
echo "weave version" weave env
echo "weave stop" weave config
echo "weave stop-router" weave version
echo "weave stop-dns" weave stop
echo "weave stop-proxy" weave stop-router
echo "weave reset" weave stop-dns
echo "weave rmpeer <peer_id>" weave stop-proxy
echo weave reset
echo "where <peer> = <ip_address_or_fqdn>[:<port>]" weave rmpeer <peer_id>
echo " <cidr> = <ip_address>/<routing_prefix_length>"
echo " <addr> = [ip:]<cidr> | net:<cidr> | net:default" where <peer> = <ip_address_or_fqdn>[:<port>]
echo " <endpoint> = [tcp://][<ip_address>]:<port> | [unix://]/path/to/socket" <cidr> = <ip_address>/<routing_prefix_length>
echo " <peer_id> = <nickname> or weave internal peer ID" <addr> = [ip:]<cidr> | net:<cidr> | net:default
<endpoint> = [tcp://][<ip_address>]:<port> | [unix://]/path/to/socket
<peer_id> = <nickname> or weave internal peer ID
EOF
exit 1 exit 1
} }