Skip to content

Commit 423bd81

Browse files
name
1 parent 33994ee commit 423bd81

File tree

1 file changed

+3
-2
lines changed
  • packages/cli/src/commands/projects

1 file changed

+3
-2
lines changed

packages/cli/src/commands/projects/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ export async function updateProjectCommand(
9393
projectId: string | undefined,
9494
options: ProjectsCommandOptions,
9595
): Promise<void> {
96-
if (!options.name) {
96+
const name = options.name;
97+
if (!name) {
9798
throw new Error('Missing required option: --name <name>');
9899
}
99100
await handleResult(
100101
() =>
101102
updateProject({
102103
projectId: projectId ?? options.project,
103-
name: options.name,
104+
name,
104105
}),
105106
options,
106107
);

0 commit comments

Comments
 (0)