Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

CLI treats flags as paths; should show help when no valid path is provided #77

Description

@gaureshpai

Running npx create-next-qucik --z throws:

Error: Path does not exist or is not accessible: --z

Flags like --z are being interpreted as paths.
If no valid directory is provided, the CLI should display help (-h) instead of erroring.

Expected behavior:

npx create-next-qucik --z
→ shows help message

Actual behavior:

→ tries to scan "--z" as a path and fails

Suggested fix:

  • Separate flags from positional args
  • If no valid paths are found, fallback to help output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions