summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-01-10 19:07:22 -0500
committerGitHub <noreply@github.com>2024-01-10 19:07:22 -0500
commit6b6217655479df639c9ad7f6324939eae4f81cea (patch)
treeb04542fb162a4daa443118520af8809cdb4855d0 /build.rs
parent0f969fcfd4409f8045357298c5229500cf720cba (diff)
refactor: rearrange/resort args (#1376)
* clean up Cargo.toml * some small cleanup * refactor: group together similar args in the help generation and code This groups together related arguments in both the help text and the code itself. * update changelog * clippy * builder pattern instead
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 1d13c701..5ebf6155 100644
--- a/build.rs
+++ b/build.rs
@@ -1,13 +1,18 @@
+#[allow(dead_code)]
+#[path = "src/options/args.rs"]
+mod args;
+
use std::{
env, fs, io,
path::{Path, PathBuf},
};
+use clap::Command;
use clap_complete::{generate_to, shells::Shell, Generator};
use clap_complete_fig::Fig;
use clap_complete_nushell::Nushell;
-include!("src/options/args.rs");
+use crate::args::build_app;
fn create_dir(dir: &Path) -> io::Result<()> {
let res = fs::create_dir_all(dir);