Skip to content

Commit

Permalink
Rename --scriptdir -> --dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Walnes committed Feb 24, 2013
1 parent f3702db commit 5890935
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func parseCommandLine() Config {
basePathFlag := flag.String("basepath", "/", "Base URL path (e.g /)")
verboseFlag := flag.Bool("verbose", false, "Enable verbose logging")
reverseLookupFlag := flag.Bool("reverselookup", true, "Perform reverse DNS lookups on remote clients")
scriptDirFlag := flag.String("scriptdir", "", "Base directory for websocket scripts")
scriptDirFlag := flag.String("dir", "", "Base directory for WebSocket scripts")

flag.Parse()

Expand Down
9 changes: 9 additions & 0 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Usage:
{{binary}} [options] program [program args]
Or, export an entire directory of executables as WebSocket endpoints:
{{binary}} [options] --dir=SOMEDIR
Options:
--port=PORT HTTP port to listen on.
Expand All @@ -41,6 +45,11 @@ Options:
--reverselookup={true,false} Perform DNS reverse lookups on remote clients.
Default: true
--dir=DIR Allow all scripts in the local directory
to be accessed as WebSockets. If using this,
option, then the standard program and args
options should not be specified.
Full documentation at http://websocketd.com/
Copyright 2013 Joe Walnes and the websocketd team. All rights reserved.
Expand Down

0 comments on commit 5890935

Please sign in to comment.