Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hide --no-config flag #255

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions numbat-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@ struct Args {
)]
expression: Option<Vec<String>>,

/// Do not load the user configuration file.
#[arg(long, hide_short_help = true)]
no_config: bool,

/// Do not load the prelude with predefined physical dimensions and units. This implies --no-init.
#[arg(long)]
#[arg(long, hide_short_help = true)]
no_prelude: bool,

/// Do not load the user init file.
#[arg(long)]
#[arg(long, hide_short_help = true)]
no_init: bool,

/// Whether or not to pretty-print every input expression.
Expand All @@ -74,17 +78,13 @@ struct Args {
#[arg(long, value_name = "MODE")]
intro_banner: Option<IntroBanner>,

/// Turn on debug mode and print disassembler output (hidden, mainly for development)
#[arg(long, short, hide = true)]
debug: bool,

/// Generate a default configuration file
#[arg(long)]
#[arg(long, hide_short_help = true)]
generate_config: bool,

/// Do not load the user configuration file (hidden, mainly for testing purposes)
#[arg(long, hide = true)]
no_config: bool,
/// Turn on debug mode and print disassembler output (hidden, mainly for development)
#[arg(long, short, hide = true)]
debug: bool,
}

#[derive(Debug, Clone, Copy, PartialEq)]
Expand Down