diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-10 19:07:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 19:07:22 -0500 |
commit | 6b6217655479df639c9ad7f6324939eae4f81cea (patch) | |
tree | b04542fb162a4daa443118520af8809cdb4855d0 /build.rs | |
parent | 0f969fcfd4409f8045357298c5229500cf720cba (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.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |