Permalink
Browse files

command usage in the readme

  • Loading branch information...
1 parent 1a17eae commit 4ca0e04395e5c18311f022e1239bede914d36326 @substack committed Feb 9, 2012
Showing with 21 additions and 4 deletions.
  1. +19 −2 README.markdown
  2. +2 −2 bin/cli.js
View
@@ -68,8 +68,25 @@ command-line usage
```
Usage:
- seaport port # to listen
- seaport host:port show # to show the port map
+
+ seaport port
+
+ Create seaport server.
+
+ seaport host:port show
+
+ Show the port map from the server at host:port.
+
+ seaport host:port service name@version [COMMAND...]
+
+ Register a service. COMMAND will get an assigned port to use as
+ its last argument. If COMMAND exits it will be restarted.
+
+ seaport host:port query name@version
+
+ Query the server for services matching the name@version pattern.
+ The version may contain semver patterns to specify a range.
+ Prints out a JSON array of host:port strings.
```
methods
View
@@ -17,8 +17,8 @@ var argv = require('optimist')
'',
' $0 host:port service name@version [COMMAND...]',
'',
- ' Register a service. COMMAND will get an assigned port to use as'
- + ' its last argument. If COMMAND exits it will be restarted.',
+ ' Register a service. COMMAND will get an assigned port to use as',
+ ' its last argument. If COMMAND exits it will be restarted.',
'',
' $0 host:port query name@version',
'',

0 comments on commit 4ca0e04

Please sign in to comment.