Skip to content

Commit

Permalink
Explicitly state build_options in help output (crystal-lang#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwinnn authored and taylor committed Aug 11, 2020
1 parent 77d7b53 commit b4f4774
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions man/shards.1
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Requires the presence of a \fIshard.yml\fR file. See \fBshard.yml\fR(5) for
more information on its format.
.SH COMMANDS
.PP
\fBbuild\fR [\fI<targets>\fR] [\fI<options>\fR...]
\fBbuild\fR [\fI<targets>\fR] [\fI<build_options>\fR...]
.RS 4
Builds the specified \fItargets\fR in \fBbin\fR path. If no targets are specified, all are built.
This command ensures all dependencies are installed, so it is not necessary to run \fBshards install\fR before.
.PP
All \fIoptions\fP following the command are delegated to \fBcrystal build\fR.
All \fIbuild_options\fP following the command are delegated to \fBcrystal build\fR.
.RE
.PP
\fBcheck\fR
Expand Down Expand Up @@ -92,7 +92,7 @@ Eventually generates a new \fIshard.lock\fR file.
.RS 4
Print the current version of the shard located at \fIpath\fR.
.RE
.SH OPTIONS
.SH GENERAL OPTIONS
.PP
\fB\-\-version\fR
.RS 4
Expand Down
22 changes: 11 additions & 11 deletions src/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ module Shards
shards [<options>...] [<command>]
Commands:
build [<targets>] [<options>] - Build the specified <targets> in `bin` path.
check - Verify all dependencies are installed.
init - Initialize a `shard.yml` file.
install - Install dependencies, creating or using the `shard.lock` file.
list [--tree] - List installed dependencies.
lock [--update] [<shards>] - Lock dependencies in `shard.lock` but doesn't install them.
outdated [--pre] - List dependencies that are outdated.
prune - Remove unused dependencies from `lib` folder.
update [<shards>] - Update dependencies and `shard.lock`.
version [<path>] - Print the current version of the shard.
build [<targets>] [<build_options>] - Build the specified <targets> in `bin` path, all build_options are delegated to `crystal build`.
check - Verify all dependencies are installed.
init - Initialize a `shard.yml` file.
install - Install dependencies, creating or using the `shard.lock` file.
list [--tree] - List installed dependencies.
lock [--update] [<shards>] - Lock dependencies in `shard.lock` but doesn't install them.
outdated [--pre] - List dependencies that are outdated.
prune - Remove unused dependencies from `lib` folder.
update [<shards>] - Update dependencies and `shard.lock`.
version [<path>] - Print the current version of the shard.
Options:
General options:
HELP
puts opts
exit
Expand Down

0 comments on commit b4f4774

Please sign in to comment.