We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa0636b commit b537b20Copy full SHA for b537b20
1 file changed
src/commands/launch/functions.ts
@@ -22,7 +22,6 @@ export default class Functions extends Command {
22
}),
23
'data-dir': Flags.string({
24
char: 'd',
25
- default: process.cwd(),
26
description: 'Current working directory',
27
28
};
@@ -34,7 +33,8 @@ export default class Functions extends Command {
34
33
35
async init(): Promise<void> {
36
const { flags } = await this.parse(Functions);
37
- const projectBasePath = flags['data-dir'];
+ const currentWorkingDirectory = process.cwd();
+ const projectBasePath = flags['data-dir'] || currentWorkingDirectory;
38
39
const logger = new Logger({ projectBasePath });
40
this.log = logger.log.bind(logger);
0 commit comments