Coder Social home page Coder Social logo

Comments (3)

okaneco avatar okaneco commented on June 30, 2024

Thanks! Those are nice colors.

You might have to enclose the colors with quotes. I've written other scripts which required single quotes around the arguments for parsing. It might have been the parsing logic I wrote or how structopt/clap handled the arguments.

I used the colors as written and didn't encounter an error:
kmeans_colors.exe find -i baboon-resize.jpg -c 035951,037368,058abf,f25116,a7c8f2 -o github.png

Perhaps try -c '035951,037368,058abf,f25116,a7c8f2'. I assume this might be a terminal/operating system issue. What OS and term are you using? I'm using cygwin and git-bash on Windows mainly now, but I've used this tool on OS X as well.

github

from kmeans-colors.

DerLando avatar DerLando commented on June 30, 2024

Thanks for getting back to me so quick :)

Enclosing the colors in single quotes did the trick!

For the record, I am using Windows 10 64 Bit and Powershell as a terminal

profile_c_small

from kmeans-colors.

okaneco avatar okaneco commented on June 30, 2024

Glad to hear that and thanks for the information, I'm not too familiar with Powershell.

I put a note in the readme for this issue in case anyone else runs into it in the future, and I'll include a similar note in future crates I publish with similar arg parsing.

from kmeans-colors.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.