Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Added validation for required settings (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbreza authored Jul 13, 2016
1 parent 94076b1 commit 7a9466f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function CliImport() {
program.parse(process.argv);
let settings = config.merge(program);

if (process.argv.length === 2) {
if (!(settings.collection && settings.workspace && settings.accessKey && settings.displayName && settings.file)) {
program.help();
} else {
try {
Expand Down

0 comments on commit 7a9466f

Please sign in to comment.