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

CLI arguments not accepted #334

Closed
isaacabraham opened this issue Oct 21, 2018 · 4 comments
Closed

CLI arguments not accepted #334

isaacabraham opened this issue Oct 21, 2018 · 4 comments

Comments

@isaacabraham
Copy link

The following command

fantomas . --pageWidth 120 --noSpaceBeforeArgument false

Gives the following error: Input path should be a file or a folder.

What am I doing wrong?

@nojaf
Copy link
Contributor

nojaf commented Oct 21, 2018

Hmm perhaps try ".\" instead

@jindraivanek
Copy link
Contributor

--noSpaceBeforeArgument dont expect any parameter, it's just flag. Fantomas thinks "false" is input path in this case.

@isaacabraham
Copy link
Author

Aha. Maybe update CLI help which suggests that it needs a boolean argument?

@nojaf
Copy link
Contributor

nojaf commented Aug 30, 2019

The documentation actually seems to cover this. I've added a link to the documentation in the help command fantomas --help.

@nojaf nojaf closed this as completed Aug 30, 2019
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

No branches or pull requests

3 participants