Skip to content

-dir flag not being respected #5867

Closed
Closed
@berwyn

Description

@berwyn

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0
node: 7.7.1
os: win32 x64 (Windows 10 1703 Build 15063.14 "Creators Update" RC)
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/flex-layout: 2.0.0-beta.7
@angular/http: 4.0.1
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1

Repro steps.

  1. run ng new -dir foo myapp
  2. Notice how the app is created in cwd, not in ./foo

The log given by the failure.

Correct output for app generation

Desired functionality.

The app should be created in ./foo, as indicated in the help text:

--directory (String) The directory name to create the app in.
  aliases: -dir <value>, --directory <value>

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions