function bookCmd(fn) {
    return function(args, kwargs) {
        var input = path.resolve(args[0] || process.cwd());
        var book = new Book({
            fs: nodeFS,
            root: input,
            logLevel: kwargs.log
        });

        return fn(book, args.slice(1), kwargs);
    };
}
// the root of the book is the first argument (or current directory)
the root of the book is the first argument (or current directory)
the root of the book is the first argument ( or current directory )
function bookCmd(fn) {
    return function(args, kwargs) {
        var input = path.resolve(args[0] || process.cwd());
        var book = new Book({
            fs: nodeFS,
            root: input,
            logLevel: kwargs.log
        });
        return fn(book, args.slice(1), kwargs);
    };
}
function bookCmd ( fn ) { return function ( args , kwargs ) { var input = path . resolve ( args [ 0 ] || process . cwd ( ) ) ; var book = new Book ( { fs : nodeFS , root : input , logLevel : kwargs . log } ) ; return fn ( book , args . slice ( 1 ) , kwargs ) ; } ; }
the root of the book is the first argument (or current directory)
the root of the book is the first argument ( or current directory )