index.js
function defaultCommand() {
    if (keys.length <= 0) {
        throw new Error("Error: there is no command at all!");
    };

    for (var p in commands) {
        if (commands[p]["default"]) {
            return commands[p];
        };
    };

    if (keys["--help"]) {
        return commands["--help"];
    } else {
        return commands[keys[0]];
    };
}
function defaultCommand() {
    if (keys.length <= 0) {
        throw new Error("Error: there is no command at all!");
    };

    for (var p in commands) {
        if (commands[p]["default"]) {
            return commands[p];
        };
    };

    if (keys["--help"]) {
        return commands["--help"];
    } else {
        return commands[keys[0]];
    };
}
function defaultCommand ( ) { if ( keys . length <= 0 ) { throw new Error ( "Error: there is no command at all!" ) ; } ; for ( var p in commands ) { if ( commands [ p ] [ "default" ] ) { return commands [ p ] ; } ; } ; if ( keys [ "--help" ] ) { return commands [ "--help" ] ; } else { return commands [ keys [ 0 ] ] ; } ; }
default command when no command line argas provided.
default command when no command line argas provided .