Skip to content

Commit

Permalink
Display help if no args are supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Aug 30, 2017
1 parent 8cd1504 commit 6f75b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/medic-conf.js
Expand Up @@ -12,6 +12,8 @@ const warn = require('../src/lib/log').warn;
let args = process.argv.slice(2);
const shift = n => args = args.slice(n || 1);

if(!args.length) return usage(0);

let instanceUrl;

switch(args[0]) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.5.7",
"version": "1.5.8",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6f75b8d

Please sign in to comment.