Skip to content

Commit

Permalink
Fix seqflow create app argument
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Apr 1, 2024
1 parent e34ef4a commit 100741a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/create-seqflow/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ function parseArguments(args: string[]): Partial<Configuration> {
} else if (arg === "--name" || arg === "-n") {
configurationFromCMD.projectName = args[i + 1];
i += 2;
} else if (arg === "--type" || arg === "-t") {
} else if (arg === "--template" || arg === "-t") {
configurationFromCMD.type = args[i + 1] as TemplateType;
i += 2;
} else {
throw new Error(`Unknown option: ${arg}`);
throw new Error(
`Unknown option: ${arg}. Allowed options are: --path, --name, --template.`,
);
}
}

Expand Down

0 comments on commit 100741a

Please sign in to comment.