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

Add -o/--output option. #120

Closed
wants to merge 0 commits into from
Closed

Add -o/--output option. #120

wants to merge 0 commits into from

Conversation

mcdado
Copy link

@mcdado mcdado commented Oct 30, 2014

It's not perfect since if you pass multiple files and specify one single output, it will keep overwriting that file. At least it's not destructive, but there's room for improvement. At least it skips folders altogether.

@goatslacker
Copy link
Member

Let me smoke test this...

@goatslacker
Copy link
Member

I created a dir structure like:

- foo/
| foo.js
| bar/
|-- bar.js

and ran it: bin/fixmyjs foo/ -o dest/

but nothing happened. What's supposed to happen in that situation?

@mcdado
Copy link
Author

mcdado commented Nov 23, 2014

In my contribution directories are just ignored. It could be improved in a way that if the -o option is a directory AND the argument is a single directory, then it should operate recursively. Otherwise, imho, it should error out or something…

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 this pull request may close these issues.

2 participants