Skip to content

Commit

Permalink
Explicitly state build_options in help output (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwinnn committed Apr 28, 2020
1 parent c20eac2 commit 3387c00
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
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
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 3387c00

Please sign in to comment.