Skip to content

Commit 5e89a8c

Browse files
committed
use === intead of ==, use full arg name file intead of F
1 parent 5cde136 commit 5e89a8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function main() {
8787
if (input) {
8888
var content = getOutput(input);
8989

90-
if (argv.F) {
91-
writeFile(argv.F, content);
92-
} else if (argv.output == 'preview') {
90+
if (argv.file) {
91+
writeFile(argv.file, content);
92+
} else if (argv.output === 'preview') {
9393
preview(content);
9494
} else {
9595
print(content);
@@ -103,7 +103,7 @@ function main() {
103103
}
104104

105105
function getInput() {
106-
if (argv.input == 'file') {
106+
if (argv.input === 'file') {
107107
return readFile(argv._[0]);
108108
} else {
109109
var gitArgs;

0 commit comments

Comments
 (0)