difftreelog
fix allow to disable hard tabs
in: master
1 file changed
cmds/jrsonnet-fmt/src/main.rsdiffbeforeafterboth5 process,5 process,6};6};778use clap::Parser;8use clap::{ArgAction, Parser};9use jrsonnet_formatter::{FormatOptions, format};9use jrsonnet_formatter::{FormatOptions, format};101011#[derive(Parser)]11#[derive(Parser)]27 /// Number of spaces to indent with27 /// Number of spaces to indent with28 #[arg(long, default_value = "4")]28 #[arg(long, default_value = "4")]29 indent: u8,29 indent: u8,30 /// Force hard tab for indentation30 /// Force soft tab (`indent` spaces) for indentation31 #[arg(long, default_value = "true")]31 #[arg(long = "no-use-tabs", action = ArgAction::SetFalse)]32 use_tabs: bool,32 use_tabs: bool,33 /// Max formatted source width33 /// Max formatted source width34 #[arg(long, default_value = "100")]34 #[arg(long, default_value = "100")]