mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	bat --help: Put --ignored-suffix directly after --map-syntax
				
					
				
			It feels out of place to have between `--acknowledgements` and `--help`.
This commit is contained in:
		@@ -349,6 +349,18 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
 | 
			
		||||
                )
 | 
			
		||||
                .takes_value(true),
 | 
			
		||||
        )
 | 
			
		||||
        .arg(
 | 
			
		||||
            Arg::with_name("ignored-suffix")
 | 
			
		||||
                .number_of_values(1)
 | 
			
		||||
                .multiple(true)
 | 
			
		||||
                .takes_value(true)
 | 
			
		||||
                .long("ignored-suffix")
 | 
			
		||||
                .hidden_short_help(true)
 | 
			
		||||
                .help(
 | 
			
		||||
                    "Ignore extension. For example:\n  \
 | 
			
		||||
                    'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
 | 
			
		||||
                )
 | 
			
		||||
        )
 | 
			
		||||
        .arg(
 | 
			
		||||
            Arg::with_name("theme")
 | 
			
		||||
                .long("theme")
 | 
			
		||||
@@ -514,18 +526,6 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
 | 
			
		||||
                .hidden_short_help(true)
 | 
			
		||||
                .help("Show acknowledgements."),
 | 
			
		||||
        )
 | 
			
		||||
        .arg(
 | 
			
		||||
            Arg::with_name("ignored-suffix")
 | 
			
		||||
                .number_of_values(1)
 | 
			
		||||
                .multiple(true)
 | 
			
		||||
                .takes_value(true)
 | 
			
		||||
                .long("ignored-suffix")
 | 
			
		||||
                .hidden_short_help(true)
 | 
			
		||||
                .help(
 | 
			
		||||
                    "Ignore extension. For example:\n  \
 | 
			
		||||
                    'bat --ignored-suffix \".dev\" my_file.json.dev' will use JSON syntax, and ignore '.dev'"
 | 
			
		||||
                )
 | 
			
		||||
        )
 | 
			
		||||
        .help_message("Print this help message.")
 | 
			
		||||
        .version_message("Show version information.");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user