1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-11 20:11:43 +00:00

Update documentation

This commit is contained in:
sharkdp
2020-03-22 10:37:18 +01:00
committed by David Peter
parent 57aed07814
commit 978def2d40
6 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ impl App {
let parts: Vec<_> = from_to.split(':').collect();
if parts.len() != 2 {
return Err("Invalid syntax mapping. The format of the -m/--map-syntax option is 'from:to'.".into());
return Err("Invalid syntax mapping. The format of the -m/--map-syntax option is '<glob-pattern>:<syntax-name>'. For example: '*.cpp:C++'.".into());
}
syntax_mapping.insert(parts[0], MappingTarget::MapTo(parts[1]))?;