We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
./
<src>
1 parent 6c605dd commit 9db90d6Copy full SHA for 9db90d6
src/cli.js
@@ -30,12 +30,6 @@ const errors = require('./errors');
30
31
export default function cli(argv = process.argv.slice(2)) {
32
let options = docopt(doc, { version: pkg.version, argv: argv });
33
-
34
- if (!options['-'] && !options['<src>'].length) {
35
- // Trigger help display.
36
- docopt(doc, { version: pkg.version, argv: ['--help'] });
37
- }
38
39
let logger = new Logger(options['--verbose'], options['--debug'] || process.env.SASSDOC_DEBUG);
40
let env = new Environment(logger, options['--strict']);
41
@@ -83,6 +77,10 @@ export default function cli(argv = process.argv.slice(2)) {
83
77
.on('data', cb);
84
78
}
85
79
80
+ if (!options['<src>'].length) {
81
+ options['<src>'].push('.');
82
+ }
+
86
handler(options['<src>'], env).then(cb);
87
88
0 commit comments