Skip to content

Commit

Permalink
Add manpage entry
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Jul 4, 2023
1 parent ee06d50 commit 4da3eb6
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion man/crystal.1
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,39 @@ Disable colored output.
.Op --
.Op arguments
.Pp
Run a tool. The available tools are: context, format, hierarchy, implementations, and types.
Run a tool. The available tools are: context, dependencies, format, hierarchy, implementations, and types.
.Pp
Tools:
.Bl -tag -offset indent
.It Cm context
Show context for given location.
.It Cm dependencies
Show tree of required source files.
.Pp
Options:
.Bl -tag -width "12345678" -compact
.Pp
.It Fl D Ar FLAG, Fl -define= Ar FLAG
Define a compile-time flag. This is useful to conditionally define types, methods, or commands based on flags available at compile time. The default flags are from the target triple given with --target-triple or the hosts default, if none is given.
.It Fl f Ar FORMAT, Fl -format= Ar FORMAT
Output format 'tree' (default) or 'flat'.
.It Fl i Ar PATH, Fl -include= Ar PATH
Include path in output.
.It Fl e Ar PATH, Fl -exclude= Ar PATH
Exclude path in output.
.It Fl -error-trace
Show full error trace.
.It Fl -prelude
Specify prelude to use. The default one initializes the garbage collector. You can also use --prelude=empty to use no preludes. This can be useful for checking code generation for a specific source code file.
.It Fl s, -stats
Print statistics about the different compiler stages for the current build. Output time and used memory for each compiler process.
.It Fl p, -progress
Print statistics about the progress for the current build.
.It Fl t, -time
Print statistics about the execution time.
.It Fl -no-color
Disable colored output.
.El
.It Cm expand
Show macro expansion for given location.
.It Cm format
Expand Down

0 comments on commit 4da3eb6

Please sign in to comment.