Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed May 17, 2019
1 parent b419a4f commit 7bd0553
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions command/fileserver/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ func init() {
Hidden: true,
Action: command.ActionFunc(fileServerAction),
Usage: "start an HTTP(S) server serving the contents of a path",
UsageText: `step fileserver <root>
[--address=<address>] [--cert=<path>] [--key=<path>`,
UsageText: `step fileserver <dir>
[--address=<address>] [--cert=<path>] [--key=<path>]`,
Description: `**step fileserver** command starts an HTTP(S) server serving the contents of a file
system.
This command is experimental and only intended for test purposes.
## POSITIONAL ARGUMENTS
<root>
<dir>
: The directory used as root for the HTTP file server.
## EXAMPLES
Expand Down Expand Up @@ -76,7 +76,7 @@ func fileServerAction(ctx *cli.Context) error {
return errs.FileError(err, root)
}
if !f.Mode().IsDir() {
return errors.New("positional argument <root> must be a directory")
return errors.New("positional argument <dir> must be a directory")
}

address := ctx.String("address")
Expand Down

0 comments on commit 7bd0553

Please sign in to comment.