File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,6 @@ const errors = require('./errors');
3030
3131export default function cli ( argv = process . argv . slice ( 2 ) ) {
3232 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-
3933 let logger = new Logger ( options [ '--verbose' ] , options [ '--debug' ] || process . env . SASSDOC_DEBUG ) ;
4034 let env = new Environment ( logger , options [ '--strict' ] ) ;
4135
@@ -83,6 +77,10 @@ export default function cli(argv = process.argv.slice(2)) {
8377 . on ( 'data' , cb ) ;
8478 }
8579
80+ if ( ! options [ '<src>' ] . length ) {
81+ options [ '<src>' ] . push ( '.' ) ;
82+ }
83+
8684 handler ( options [ '<src>' ] , env ) . then ( cb ) ;
8785}
8886
You can’t perform that action at this time.
0 commit comments