diff src/xxd/xxd.c @ 13571:362b27e3f702 v8.0.1658

patch 8.0.1658: capitalize argument not available in long form commit https://github.com/vim/vim/commit/79cf7c0d4574f15cfad5ad706f175e226c528f2a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 3 14:21:16 2018 +0200 patch 8.0.1658: capitalize argument not available in long form Problem: Capitalize argument not available in long form. Solution: Recognize -capitalize. Update man page.
author Christian Brabandt <cb@256bit.org>
date Tue, 03 Apr 2018 14:30:08 +0200
parents 4f2acb6a10b6
children 11879b89bb69
line wrap: on
line diff
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -510,6 +510,8 @@ main(int argc, char *argv[])
 	{
 	  if (pp[2] && STRNCMP("ols", pp + 2, 3))
 	    cols = (int)strtol(pp + 2, NULL, 0);
+	  else if (pp[2] && STRNCMP("apitalize", pp + 2, 9))
+	    capitalize = 1;
 	  else
 	    {
 	      if (!argv[2])