Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit a0ce795

Browse files
committed
fix: tweaks
1 parent 3e4415d commit a0ce795

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This package is inspired by the [go-ipfs repo migration tool](https://github.com
1717

1818
## Lead Maintainer
1919

20-
???
20+
[Adam Uhlíř](https://github.com/auhau/)
2121

2222
## Table of Contents
2323

src/cli.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ const log = require('debug')('repo-migrations:cli')
1010
const commands = require('./commands')
1111

1212
function print (msg = '', newline = true) {
13-
if (newline === undefined) {
14-
newline = true
15-
}
16-
17-
if (msg === undefined) {
18-
msg = ''
19-
}
2013
msg = newline ? msg + '\n' : msg
2114
process.stdout.write(msg)
2215
}
@@ -41,6 +34,7 @@ async function main (args) {
4134
throw err // preserve stack
4235
}
4336

37+
// Suppress "one command required" error when only help page is to be displayed
4438
if (args.length > 0) {
4539
print(msg)
4640
}

0 commit comments

Comments
 (0)