mediasnacks 0.18.2 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,8 @@ _mediasnacks_commands=(
8
8
  'edgespic:Extracts first and last frames'
9
9
  'gif:Video to GIF'
10
10
 
11
- 'dropdups:Removes duplicate frames in a video'
11
+ 'detectdups:Detects sequentially duplicate frames in a video'
12
+ 'dropdups:Removes sequentially duplicate frames in a video'
12
13
  'framediff:ffplay with a filter for diffing adjacent frames'
13
14
  'hev1tohvc1:Fixes video thumbnails not rendering in macOS Finder'
14
15
  'moov2front:Rearranges metadata for fast-start streaming'
@@ -38,7 +39,7 @@ fi
38
39
 
39
40
  local cmd="$words[2]"
40
41
  case "$cmd" in
41
- avif|resize|sqcrop|moov2front|dropdups|edgespic|seqcheck|hev1tohvc1|framediff|vdiff|vconcat|vsplit|vtrim|dlaudio|dlvideo|unemoji|rmcover|curltime|gif|flattendir|prores)
42
+ avif|resize|sqcrop|moov2front|detectdups|dropdups|edgespic|seqcheck|hev1tohvc1|framediff|vdiff|vconcat|vsplit|vtrim|dlaudio|dlvideo|unemoji|rmcover|curltime|gif|flattendir|prores)
42
43
  _files
43
44
  ;;
44
45
  qdir)
package/README.md CHANGED
@@ -34,7 +34,8 @@ mediasnacks <command> <args>
34
34
  - `gif`: Video to GIF
35
35
 
36
36
 
37
- - `dropdups` Removes duplicate frames in a video
37
+ - `detectdups` Detects sequentially duplicate frames in a video
38
+ - `dropdups` Removes sequentially duplicate frames in a video
38
39
  - `framediff`: Plays a video of adjacent frames diff
39
40
  - `hev1tohvc1`: Fixes video thumbnails not rendering in macOS Finder
40
41
  - `moov2front` Rearranges .mov and .mp4 metadata for fast-start streaming
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasnacks",
3
- "version": "0.18.2",
3
+ "version": "0.19.1",
4
4
  "description": "Utilities for optimizing and preparing videos and images",
5
5
  "license": "MIT",
6
6
  "author": "Eric Fortis",
package/src/avif.js CHANGED
@@ -7,10 +7,12 @@ import { replaceExt, lstat } from './utils/fs-utils.js'
7
7
  import { ffmpeg, assertUserHasFFmpeg } from './utils/ffmpeg.js'
8
8
 
9
9
 
10
- const USAGE = `
11
- Usage: mediasnacks avif [-y | --overwrite] [--output-dir=<dir>] <images>
10
+ const MAN = `
11
+ SYNOPSIS
12
+ mediasnacks avif [-y | --overwrite] [--output-dir=<dir>] <images>
12
13
 
13
- Converts images to AVIF.
14
+ DESCRIPTION
15
+ Converts images to AVIF.
14
16
  `.trim()
15
17
 
16
18
 
@@ -24,7 +26,7 @@ async function main() {
24
26
  })
25
27
 
26
28
  if (values.help) {
27
- console.log(USAGE)
29
+ console.log(MAN)
28
30
  process.exit(0)
29
31
  }
30
32
 
package/src/cli.js CHANGED
@@ -14,6 +14,7 @@ const COMMANDS = {
14
14
  edgespic: ['edgespic.js', 'Extracts first and last frames'],
15
15
  gif: ['gif.sh', 'Video to GIF\n'],
16
16
 
17
+ detectdups: ['detectdups.js', 'Detects duplicate frames in a video'],
17
18
  dropdups: ['dropdups.js', 'Removes duplicate frames in a video'],
18
19
  framediff: ['framediff.sh', 'Plays a video of adjacent frames diff'],
19
20
  hev1tohvc1: ['hev1tohvc1.js', 'Fixes video thumbnails not rendering in macOS Finder '],
@@ -37,12 +38,13 @@ const COMMANDS = {
37
38
  curltime: ['curltime.sh', 'Measures request response timings'],
38
39
  }
39
40
 
40
- const USAGE = `
41
- Usage: mediasnacks <command> <args>
41
+ const MAN = `
42
+ SYNOPSIS
43
+ mediasnacks <command> <args>
42
44
 
43
- Commands:
45
+ COMMANDS
44
46
  ${Object.entries(COMMANDS).map(([cmd, [, title]]) =>
45
- ` ${styleText('bold', cmd.padEnd(12, ' '))}\t${title}`).join('\n')}
47
+ ` ${styleText('bold', cmd.padEnd(12, ' '))}\t${title}`).join('\n')}
46
48
  `.trim()
47
49
 
48
50
 
@@ -53,12 +55,12 @@ if (opt === '-v' || opt === '--version') {
53
55
  process.exit(0)
54
56
  }
55
57
  if (opt === '-h' || opt === '--help') {
56
- console.log(USAGE)
58
+ console.log(MAN)
57
59
  process.exit(0)
58
60
  }
59
61
 
60
62
  if (!opt) {
61
- console.log(USAGE)
63
+ console.log(MAN)
62
64
  process.exit(1)
63
65
  }
64
66
  if (!Object.hasOwn(COMMANDS, opt)) {
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { parseOptions } from './utils/parseOptions.js'
4
+ import { ffmpeg, assertUserHasFFmpeg, videoAttrs } from './utils/ffmpeg.js'
5
+
6
+
7
+ const MAN = `
8
+ Usage: mediasnacks detectdups [options] <video>
9
+
10
+ Detects sequentially duplicate frames in a video and prints a histogram of their distance.
11
+
12
+ EXAMPLES
13
+ Peak at N=2, means that every other frame is repeated, such as in a
14
+ video that was converted from 30 to 60fps without interpolation.
15
+
16
+ Peak at N=6, means that the 6th frame in a sequence is repeated.
17
+ For instance, a video converted from 25 to 30fps, or 50 to 60fps.
18
+
19
+ OPTIONS
20
+ -s, --seek <sec> Video start time for detection
21
+ -d, --duration <sec> Analyze this many seconds of video
22
+ -v, --verbose
23
+ -h, --help
24
+
25
+ SEE ALSO
26
+ mediasnacks framediff
27
+ `.trim()
28
+
29
+
30
+ async function main() {
31
+ await assertUserHasFFmpeg()
32
+
33
+ const { values, files } = await parseOptions({
34
+ seek: { short: 's', type: 'string', },
35
+ duration: { short: 'd', type: 'string' },
36
+ help: { short: 'h', type: 'boolean' }
37
+ })
38
+
39
+ if (values.help) {
40
+ console.log(MAN)
41
+ process.exit(0)
42
+ }
43
+
44
+ if (files.length !== 1)
45
+ throw new Error('Invalid input file. One video file must be specified. See mediasnacks detectdups --help')
46
+
47
+ const v = await videoAttrs(files[0])
48
+
49
+ if (v.codec_type !== 'video')
50
+ throw new Error('Invalid input file. Must be a video.')
51
+
52
+ const vDur = Number(v.duration)
53
+
54
+ const seek = values.seek
55
+ ? Number(values.seek)
56
+ : vDur > 60 ? 20 : 0
57
+
58
+ const duration = values.duration
59
+ ? Number(values.duration)
60
+ : vDur > 60 ? 20 : vDur
61
+
62
+ if (isNaN(seek) || seek < 0)
63
+ throw new Error(`Invalid --seek value: ${values.seek}`)
64
+
65
+ if (isNaN(duration) || duration < 1)
66
+ throw new Error(`Invalid --duration value: ${values.duration}`)
67
+
68
+ if ((seek + duration) > vDur)
69
+ throw new Error(`Invalid analysis range. Exceeds video duration: ${vDur}`)
70
+
71
+
72
+ const dups = await detectDuplicateFramesNums(files[0], seek, duration)
73
+ analyze(dups, seek, duration)
74
+ }
75
+
76
+ async function detectDuplicateFramesNums(video, seek, duration) {
77
+ const { stderr } = await ffmpeg([
78
+ '-v', 'info',
79
+ '-stats',
80
+ '-ss', seek,
81
+ '-t', duration,
82
+ '-i', video,
83
+ '-vf', [
84
+ 'scale=320:-1',
85
+ 'tblend=all_mode=difference',
86
+ 'format=gray',
87
+ 'showinfo',
88
+ ].join(','),
89
+ '-f', 'null', '-',
90
+ ])
91
+
92
+ const reBlackFramesNum = /n:\s*(\d+).*?mean:\[0]/
93
+ const dupFrames = []
94
+ for (const line of stderr.split('\n')) {
95
+ const match = line.match(reBlackFramesNum)
96
+ if (match)
97
+ dupFrames.push(Number(match[1]))
98
+ }
99
+ return dupFrames
100
+ }
101
+
102
+ function analyze(dup_frames, seek, duration) {
103
+ const histogram = {}
104
+ for (let i = 1; i < dup_frames.length; i++) {
105
+ const diff = dup_frames[i] - dup_frames[i - 1]
106
+ histogram[diff] = (histogram[diff] || 0) + 1
107
+ }
108
+ console.log(JSON.stringify({
109
+ analyzed_region: {
110
+ start_sec: seek,
111
+ end_sec: seek + duration
112
+ },
113
+ histogram
114
+ }, null, 2))
115
+ }
116
+
117
+ main().catch(err => {
118
+ console.error(err.message || err)
119
+ process.exit(1)
120
+ })
package/src/dropdups.js CHANGED
@@ -17,12 +17,14 @@ const PRORES_PROFILES = {
17
17
  const PROFILE = PRORES_PROFILES.hq
18
18
 
19
19
 
20
- const USAGE = `
21
- Usage: mediasnacks dropdups [-n <bad-frame-number>] <video>
20
+ const MAN = `
21
+ SYNOPSIS
22
+ mediasnacks dropdups [-n <bad-frame-number>] <video>
22
23
 
23
- Removes duplicate frames and outputs ProRes 422 HQ.
24
+ DESCRIPTION
25
+ Removes sequentially duplicate frames and outputs ProRes 422 HQ.
24
26
 
25
- Options:
27
+ OPTIONS
26
28
  -n, --bad-frame-number <n> Known frame interval to drop.
27
29
  (default: n=0) auto-detects repeated frames (slower)
28
30
  Ex.A: Use n=2 when every other frame is repeated.
@@ -40,7 +42,7 @@ async function main() {
40
42
  })
41
43
 
42
44
  if (values.help) {
43
- console.log(USAGE)
45
+ console.log(MAN)
44
46
  process.exit(0)
45
47
  }
46
48
 
package/src/edgespic.js CHANGED
@@ -7,15 +7,17 @@ import { parseOptions } from './utils/parseOptions.js'
7
7
  import { ffmpeg, videoAttrs, assertUserHasFFmpeg } from './utils/ffmpeg.js'
8
8
 
9
9
 
10
- const USAGE = `
11
- Usage: mediasnacks edgespic [--width=<num>] <files>
10
+ const MAN = `
11
+ SYNOPSIS
12
+ mediasnacks edgespic [--width=<num>] <files>
12
13
 
13
- Extracts the first and last frames from each video and saves them to the 'edgepics/' subfolder.
14
- --width defaults to 640px and The aspect ratio is preserved.
14
+ DESCRIPTION
15
+ Extracts the first and last frames from each video and saves them to the 'edgepics/' subfolder.
16
+ --width defaults to 640px and The aspect ratio is preserved.
15
17
 
16
- Example:
17
- mediasnacks edgespic --width 800 *.mov
18
- mediasnacks edgespic -w 600 'videos/**/*.mp4'
18
+ EXAMPLES
19
+ mediasnacks edgespic --width 800 *.mov
20
+ mediasnacks edgespic -w 600 'videos/**/*.mp4'
19
21
  `.trim()
20
22
 
21
23
 
@@ -28,7 +30,7 @@ async function main() {
28
30
  })
29
31
 
30
32
  if (values.help) {
31
- console.log(USAGE)
33
+ console.log(MAN)
32
34
  process.exit(0)
33
35
  }
34
36
 
package/src/framediff.sh CHANGED
@@ -1,8 +1,23 @@
1
1
  #!/bin/sh
2
2
 
3
- # Plays a video with a filter for diffing adjacent frames.
4
- # I use this for finding repeated frames. For example, you’ll see
5
- # a black frame if two consecutive frames are almost similar.
3
+
4
+ if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
5
+ /bin/cat << EOF
6
+ SYNOPSIS
7
+ mediasnacks framediff <video>
8
+
9
+ DESCRIPTION
10
+ Runs FFplay with a video filter for diffing adjacent frames. Useful for
11
+ finding duplicate frames, which will show up a a black frame.
12
+
13
+ TIPS
14
+ Hit [s] to step frame-by-frame.
15
+
16
+ SEE ALSO
17
+ mediasnacks detectdups, ffplay(1)
18
+ EOF
19
+ exit 0
20
+ fi
6
21
 
7
22
  ffplay -v error "$1" -vf "
8
23
  tblend=all_mode=difference,
package/src/hev1tohvc1.js CHANGED
@@ -5,12 +5,14 @@ import { uniqueFilenameFor, overwrite } from './utils/fs-utils.js'
5
5
  import { videoAttrs, ffmpeg, assertUserHasFFmpeg } from './utils/ffmpeg.js'
6
6
 
7
7
 
8
- const USAGE = `
9
- Usage: mediasnacks hev1tohvc1 <videos>
10
-
11
- This program fixes video thumbnails not rendering in macOS
12
- Finder, and fixes video not importable in Final Cut Pro. That’s done
13
- by changing the container’s sample entry code from HEV1 to HVC1.
8
+ const MAN = `
9
+ SYNOPSIS
10
+ mediasnacks hev1tohvc1 <videos>
11
+
12
+ DESCRIPTION
13
+ This program fixes video thumbnails not rendering in macOS
14
+ Finder, and fixes video not importable in Final Cut Pro. That’s done
15
+ by changing the container’s sample entry code from HEV1 to HVC1.
14
16
  `.trim()
15
17
 
16
18
 
@@ -20,7 +22,7 @@ async function main() {
20
22
  const { files } = await parseOptions()
21
23
 
22
24
  if (!files.length)
23
- throw new Error(USAGE)
25
+ throw new Error(MAN)
24
26
 
25
27
  console.log('HEV1 to HVC1…')
26
28
  for (const file of files)
package/src/moov2front.js CHANGED
@@ -5,12 +5,15 @@ import { uniqueFilenameFor, overwrite } from './utils/fs-utils.js'
5
5
  import { parseOptions } from './utils/parseOptions.js'
6
6
 
7
7
 
8
- const USAGE = `
9
- Usage: mediasnacks moov2front <videos>
8
+ const MAN = `
9
+ SYNOPSIS
10
+ mediasnacks moov2front <videos>
10
11
 
11
- Rearranges .mov and .mp4 metadata to the start of the file for fast-start streaming.
12
-
13
- Files are overwritten.
12
+ DESCRIPTION
13
+ Rearranges .mov and .mp4 metadata to the start of the file for fast-start streaming.
14
+
15
+ NOTES
16
+ Files are overwritten.
14
17
  `.trim()
15
18
 
16
19
  async function main() {
@@ -19,7 +22,7 @@ async function main() {
19
22
  const { files } = await parseOptions()
20
23
 
21
24
  if (!files.length)
22
- throw new Error(USAGE)
25
+ throw new Error(MAN)
23
26
 
24
27
  console.log('Optimizing video for progressive download…')
25
28
  for (const file of files)
package/src/prores.js CHANGED
@@ -14,23 +14,22 @@ const PRORES_PROFILES = {
14
14
  '4444xq': 5,
15
15
  }
16
16
 
17
- const USAGE = `
18
- Usage: mediasnacks prores [options] <video>
17
+ const MAN = `
18
+ SYNOPSIS
19
+ mediasnacks prores [options] <video>
19
20
 
20
- Converts a video to ProRes format.
21
+ DESCRIPTION
22
+ Converts a video to ProRes format.
21
23
 
22
- Arguments:
23
- <video> Video file to convert
24
-
25
- Options:
24
+ OPTIONS
26
25
  -p, --profile <n> ProRes profile (default: 3 (422 HQ))
27
26
  -h, --help Show this help message
28
27
 
29
- Example:
28
+ EXAMPLES
30
29
  mediasnacks prores video.mov
31
30
  mediasnacks prores --profile 2 video.mov
32
31
 
33
- Outputs: video.prores.mov
32
+ Both output a file named: video.prores.mov
34
33
  `.trim()
35
34
 
36
35
 
@@ -43,7 +42,7 @@ async function main() {
43
42
  })
44
43
 
45
44
  if (values.help) {
46
- console.log(USAGE)
45
+ console.log(MAN)
47
46
  process.exit(0)
48
47
  }
49
48
 
package/src/qdir.js CHANGED
@@ -8,10 +8,12 @@ import { readdir, writeFile, unlink, rename } from 'node:fs/promises'
8
8
  import { isFile } from './utils/fs-utils.js'
9
9
 
10
10
 
11
- const USAGE = `
12
- Usage: mediasnacks qdir [folder]
11
+ const MAN = `
12
+ SYNOPSIS
13
+ mediasnacks qdir [folder]
13
14
 
14
- Sequentially runs all *.sh files in a folder (cwd by default).
15
+ DESCRIPTION
16
+ Sequentially runs all *.sh files in a folder (cwd by default).
15
17
  `.trim()
16
18
 
17
19
 
@@ -24,7 +26,7 @@ async function main() {
24
26
  })
25
27
 
26
28
  if (values.help) {
27
- console.log(USAGE)
29
+ console.log(MAN)
28
30
  process.exit(0)
29
31
  }
30
32
 
package/src/resize.js CHANGED
@@ -8,19 +8,21 @@ import { isFile, uniqueFilenameFor } from './utils/fs-utils.js'
8
8
  import { ffmpeg, videoAttrs, assertUserHasFFmpeg } from './utils/ffmpeg.js'
9
9
 
10
10
 
11
+ const MAN = `
12
+ SYNOPSIS
13
+ mediasnacks resize [--width=<num>] [--height=<num>] [-y | --overwrite] [--output-dir=<dir>] <files>
11
14
 
12
- const USAGE = `
13
- Usage: mediasnacks resize [--width=<num>] [--height=<num>] [-y | --overwrite] [--output-dir=<dir>] <files>
15
+ DESCRIPTION
16
+ Resizes videos and images. The aspect ratio is preserved when only one dimension is specified.
14
17
 
15
- Resizes videos and images. The aspect ratio is preserved when only one dimension is specified.
16
-
17
- Example: Overwrites the input file (-y)
18
+ EXAMPLES
19
+ Overwrites the input file (-y)
18
20
  mediasnacks resize -y --width 480 'dir-a/**/*.png' 'dir-b/**/*.mp4'
19
21
 
20
- Example: Output directory (-o)
22
+ Output directory (-o)
21
23
  mediasnacks resize --height 240 --output-dir /tmp/out video.mov
22
24
 
23
- Details:
25
+ OPTIONS
24
26
  --width and --height are -2 by default:
25
27
  -1 = auto-compute while preserving the aspect ratio (may result in an odd number)
26
28
  -2 = same as -1 but rounds to the nearest even number
@@ -39,7 +41,7 @@ async function main() {
39
41
  })
40
42
 
41
43
  if (values.help) {
42
- console.log(USAGE)
44
+ console.log(MAN)
43
45
  process.exit(0)
44
46
  }
45
47
 
package/src/seqcheck.js CHANGED
@@ -4,12 +4,14 @@ import { parseArgs } from 'node:util'
4
4
  import { readdirSync } from 'node:fs'
5
5
 
6
6
 
7
- const USAGE = `
8
- Usage: mediasnacks seqcheck [options] [folder]
7
+ const MAN = `
8
+ SYNOPSIS
9
+ mediasnacks seqcheck [options] [folder]
9
10
 
10
- Find missing numbered files in a sequence.
11
+ DESCRIPTION
12
+ Find missing numbered files in a sequence.
11
13
 
12
- Options:
14
+ OPTIONS
13
15
  -ld, --left-delimiter <str> Delimiter before the number (default: "_")
14
16
  -rd, --right-delimiter <str> Delimiter after the number (default: ".")
15
17
  -h, --help
@@ -27,7 +29,7 @@ function main() {
27
29
  })
28
30
 
29
31
  if (values.help) {
30
- console.log(USAGE)
32
+ console.log(MAN)
31
33
  process.exit(0)
32
34
  }
33
35
 
package/src/sqcrop.js CHANGED
@@ -8,10 +8,12 @@ import { lstat, uniqueFilenameFor } from './utils/fs-utils.js'
8
8
  import { parseOptions } from './utils/parseOptions.js'
9
9
 
10
10
 
11
- const USAGE = `
12
- Usage: mediasnacks sqcrop [-y | --overwrite] [--output-dir=<dir>] <images>
11
+ const MAN = `
12
+ SYNOPSIS
13
+ mediasnacks sqcrop [-y | --overwrite] [--output-dir=<dir>] <images>
13
14
 
14
- Square crops images
15
+ DESCRIPTION
16
+ Square crops images
15
17
  `.trim()
16
18
 
17
19
 
@@ -25,7 +27,7 @@ async function main() {
25
27
  })
26
28
 
27
29
  if (values.help) {
28
- console.log(USAGE)
30
+ console.log(MAN)
29
31
  process.exit(0)
30
32
  }
31
33
 
@@ -141,7 +141,7 @@ export async function videoAttrs(v) {
141
141
  '-of', 'json',
142
142
  v
143
143
  ])
144
- return JSON.parse(stdout).streams[0]
144
+ return JSON.parse(stdout).streams?.[0] || {}
145
145
  }
146
146
 
147
147
 
package/src/vconcat.sh CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  if [ "$#" -lt 2 ]; then
4
4
  cat << EOF
5
- Usage:
6
- $(basename "$0") vid1.mov vid2.mov [...]
7
- $(basename "$0") *.mp4
5
+ EXAMPLES
6
+ $(basename "$0") vid1.mov vid2.mov [...]
7
+ $(basename "$0") *.mp4
8
8
  EOF
9
9
  exit 1
10
10
  fi
package/src/vsplit.js CHANGED
@@ -9,16 +9,18 @@ import { assertUserHasFFmpeg, run } from './utils/ffmpeg.js'
9
9
 
10
10
  // TODO looks like it's missing a frame (perhaps becaue of -c copy)
11
11
 
12
- const USAGE = `
13
- Usage: mediasnacks vsplit <csv> <video>
12
+ const MAN = `
13
+ SYNOPSIS
14
+ mediasnacks vsplit <csv> <video>
14
15
 
15
- Splits a video into multiple clips from CSV timestamps.
16
+ DESCRIPTION
17
+ Splits a video into multiple clips from CSV timestamps.
16
18
 
17
- Arguments:
19
+ ARGUMENTS
18
20
  <csv> CSV file with start,end columns (in seconds)
19
21
  <video> Video file to split
20
22
 
21
- Example:
23
+ EXAMPLE
22
24
  mediasnacks vsplit clips.csv video.mov
23
25
 
24
26
  Given clips.csv:
@@ -39,7 +41,7 @@ async function main() {
39
41
  })
40
42
 
41
43
  if (values.help) {
42
- console.log(USAGE)
44
+ console.log(MAN)
43
45
  process.exit(0)
44
46
  }
45
47
 
package/src/vtrim.js CHANGED
@@ -5,12 +5,14 @@ import { parseOptions } from './utils/parseOptions.js'
5
5
  import { ffmpeg, assertUserHasFFmpeg } from './utils/ffmpeg.js'
6
6
 
7
7
 
8
- const USAGE = `
9
- Usage: mediasnacks vtrim [--start <time>] [--end <time>] <video>
8
+ const MAN = `
9
+ SYNOPSIS
10
+ mediasnacks vtrim [--start <time>] [--end <time>] <video>
10
11
 
11
- Trims a video without re-encoding (fast, but approximate cuts).
12
+ DESCRIPTION
13
+ Trims a video without re-encoding (fast, but approximate cuts).
12
14
 
13
- Options:
15
+ OPTIONS
14
16
  -s, --start <time> Start time (e.g. 10, 00:00:10, 1:23.5). Default: beginning.
15
17
  -e, --end <time> End time (e.g. 30, 00:00:30, 2:45.0). Default: end of video.
16
18
  -h, --help
@@ -27,7 +29,7 @@ async function main() {
27
29
  })
28
30
 
29
31
  if (values.help) {
30
- console.log(USAGE)
32
+ console.log(MAN)
31
33
  process.exit(0)
32
34
  }
33
35