File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ pub fn main() -> Result<()> {
71
71
let config = config. clone ( ) ;
72
72
move |mode : Mode | -> Result < git:: Repository > {
73
73
let mut mapping: git:: sec:: trust:: Mapping < git:: open:: Options > = Default :: default ( ) ;
74
- let strict_toggle = matches ! ( mode, Mode :: Strict | Mode :: StrictWithGitInstallConfig ) ;
74
+ let strict_toggle = matches ! ( mode, Mode :: Strict | Mode :: StrictWithGitInstallConfig ) || args . strict ;
75
75
mapping. full = mapping. full . strict_config ( strict_toggle) ;
76
76
mapping. reduced = mapping. reduced . strict_config ( strict_toggle) ;
77
77
let git_installation = matches ! (
Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ pub struct Args {
35
35
#[ clap( long, conflicts_with( "verbose" ) ) ]
36
36
pub progress : bool ,
37
37
38
+ /// Don't default malformed configuration flags, but show an error instead.
39
+ ///
40
+ /// Note that some subcommands use strict mode by default.
41
+ // TODO: needs a 'lenient' mutually exclusive counterpart. Opens the gate to auto-verbose some commands, and add --no-verbose
42
+ // for these.
43
+ #[ clap( long, short = 's' ) ]
44
+ pub strict : bool ,
45
+
38
46
/// The progress TUI will stay up even though the work is already completed.
39
47
///
40
48
/// Use this to be able to read progress messages or additional information visible in the TUI log pane.
You can’t perform that action at this time.
0 commit comments