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

Update Example #2

Closed
josefnpat opened this issue Nov 3, 2014 · 2 comments
Closed

Update Example #2

josefnpat opened this issue Nov 3, 2014 · 2 comments

Comments

@josefnpat
Copy link
Contributor

I would consider the example line the easiest way to "get started" with the application.

Your example line;

find *.png | texpack -o out/atlas -p 16 -m metadata.json -b

I would suggest doing the following:

  • Have texpack determine if the out director exists, and if not, make it.
  • use find . -name "*.png" for the find example, so it recursively looks through directories.
  • Use the correct binary name (currently texpack.exe 😞 )
  • Don't use flags that are not required or not defaulted.

Perhaps something like this?

mkdir -p out
find . -name "*.png" | texpack.exe -o out/atlas
@josefnpat
Copy link
Contributor Author

I can provide a PR if you like!

@urraka
Copy link
Owner

urraka commented Nov 3, 2014

Updated the example as you suggested. Perhaps later on I'll make it check if the directory exists and create it if it doesn't.

urraka pushed a commit that referenced this issue Nov 25, 2017
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

2 participants