Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project arguments are ignored in command line #859

Closed
Qythyx opened this issue Jul 7, 2021 · 1 comment · Fixed by #865
Closed

Project arguments are ignored in command line #859

Qythyx opened this issue Jul 7, 2021 · 1 comment · Fixed by #865

Comments

@Qythyx
Copy link

Qythyx commented Jul 7, 2021

Expected Behavior

Using the command line arguments -P or --project should allow you to specify a clasp project file according to the help text: path to a project file or to a folder with a '.clasp.json' file.

Actual Behavior

These arguments are ignored.

Steps to Reproduce the Problem

  1. Move your .clasp.json file to a new name like myClasp.json
  2. Run clasp -P myClasp.json versions
  3. You will see an error that .clasp.json was not found because the -P arg did not properly use the provided file

Specifications

  • Version (clasp -v): 2.4.0
@nandito
Copy link

nandito commented Jul 13, 2021

Using the -P and --project doesn't work for me either. But it seems specifying the project file as environment variable works:

$ clasp_config_project=.clasp-test.json yarn clasp versions

(I have clasp 2.4.0 installed as a dependency in my project, yarn clasp simply runs the local clasp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants