Skip to content

Commit

Permalink
command usage in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Feb 9, 2012
1 parent 1a17eae commit 4ca0e04
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 19 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
'',
Expand Down

0 comments on commit 4ca0e04

Please sign in to comment.