diff --git a/README.md b/README.md index 7422cf00..36f5c260 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Use the `blocks` command to extract blocks from a file: ![blocks](_docs/blocks.png) +To output only the block content, separated by the null character, use the flags ``--zero-terminated` or `z`. + ### Show What Format Would Do Use the `diff` command to see what would be formatted (files can also be piped in on stdin) : diff --git a/cli/cmds.go b/cli/cmds.go index fb4d8b5f..df9f8254 100644 --- a/cli/cmds.go +++ b/cli/cmds.go @@ -200,7 +200,7 @@ func Make() *cobra.Command { }, } root.AddCommand(blocksCmd) - blocksCmd.Flags().BoolP("zero-terminated", "0", false, "outputs blocks separated by null separator") + blocksCmd.Flags().BoolP("zero-terminated", "z", false, "outputs blocks separated by null separator") root.AddCommand(&cobra.Command{ Use: "version",