Skip to content

Commit

Permalink
feat: make annotations for missing instantations opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Jun 22, 2023
1 parent 9bcc4f3 commit d798f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Expand Up @@ -18,9 +18,9 @@ pub struct Cli {
/// Disable any code highlighting.
#[arg(long)]
pub no_highlight: bool,
/// Disable annotations for missing instantiations.
/// Show annotations for missing instantiations.
#[arg(long)]
pub no_instantiations: bool,
pub show_instantiations: bool,
/// The highlighting theme to use, if not disabled.
#[arg(long, default_value_t = Theme::OneHalf)]
pub theme: Theme,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -68,7 +68,7 @@ fn main() -> Result<()> {
let files = collect_project_files(&project_dir)?;
let mut files = merge_file_info(files, &export.files);

if !cli.no_instantiations {
if cli.show_instantiations {
merge_function_info(&mut files, &export.functions);
}

Expand Down

0 comments on commit d798f5a

Please sign in to comment.