Skip to main content

kernel_builder/
cli.rs

1use clap::Parser;
2
3#[derive(Debug, Parser)]
4#[command(name = "kernel-builder", version, about = env!("CARGO_PKG_DESCRIPTION"))]
5pub struct Args {
6    /// Skip build
7    #[arg(long)]
8    pub no_build: bool,
9
10    /// Skip generating initramfs
11    #[cfg(feature = "dracut")]
12    #[arg(long)]
13    pub no_initramfs: bool,
14
15    /// Skip installing kernel modules
16    #[arg(long)]
17    pub no_modules: bool,
18
19    /// Open menuconfig for kernel configuration
20    #[arg(long)]
21    pub menuconfig: bool,
22
23    /// Replace the current installed kernel
24    #[arg(long)]
25    pub replace: bool,
26}