Skip to content

Commit

Permalink
Merge branch 'master' into arv/deallocate_at_instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored Feb 12, 2024
2 parents c56fb2f + be6e8eb commit 4b4ef66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tooling/nargo_cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ enum NargoCommand {
Dap(dap_cmd::DapCommand),
}

#[cfg(not(feature = "codegen-docs"))]
pub(crate) fn start_cli() -> eyre::Result<()> {
#[cfg(feature = "codegen-docs")]
return codegen_docs();

let NargoCli { command, mut config } = NargoCli::parse();

// If the provided `program_dir` is relative, make it absolute by joining it to the current directory.
Expand Down Expand Up @@ -131,7 +129,7 @@ pub(crate) fn start_cli() -> eyre::Result<()> {
}

#[cfg(feature = "codegen-docs")]
fn codegen_docs() -> eyre::Result<()> {
pub(crate) fn start_cli() -> eyre::Result<()> {
let markdown: String = clap_markdown::help_markdown::<NargoCli>();
println!("{markdown}");
Ok(())
Expand Down

0 comments on commit 4b4ef66

Please sign in to comment.