Giter Site home page Giter Site logo

Comments (4)

alvazir avatar alvazir commented on September 3, 2024

Hello!

I've checked and confirm the bug. It's partial though, because "alternative" ways to provide such names exist. That's why I've never encountered it, despite using plugins with commas in names :-\

  1. Not working:
    ./habasi -m "out.esp, Umbra, Blademaster.ESP, Vampire Hunters, but They Want to Reintroduce You to Death.esp"
  2. Working(only possible for 1 last --merge list though):
    ./habasi -m "out.esp" "Umbra, Blademaster.ESP" "Vampire Hunters, but They Want to Reintroduce You to Death.esp"
  3. Working(via config file):
    merge = [[ "out.esp", "Umbra, Blademaster.ESP", "Vampire Hunters, but They Want to Reintroduce You to Death.esp" ]]

Yes, I should fix the first case. Escape sequence looks great.

from habasi.

alvazir avatar alvazir commented on September 3, 2024

Found another funny workaround for now. Use glob or regex pattern :-D Next example simply replaces comma with a dot(which represenets any symbol in regex).

./habasi -m "out.esp, regex:Umbra. Blademaster.ESP, regex:Vampire Hunters. but They Want to Reintroduce You to Death.esp"

from habasi.

lucius-martius avatar lucius-martius commented on September 3, 2024

I personally am entirely satisfied by specifying the files as individual arguments (workaround 2), it even simplifies my script, since I don't need to concat the file names anymore and don't need multiple merge lists. I could have figured this out myself, but it seems I completely missed it in my multiple times of going over the help-output of the -m command.

As to multiple merge-lists I feel like the regex workaround is a bit awkward, though I can't think of a situation where it would not work. Is there any reason we can't have multiple -m commands with each multiple arguments or is it just because that complicates command-line parsing?

I'll leave it to you if you want to close the issue or keep it open.

from habasi.

alvazir avatar alvazir commented on September 3, 2024
  1. Help output may definitely be improved. That'd be great if you have an idea of how to reword it or where to move the part about the needed thing :-)

  2. Yep, that complicates things and most possibly requires changing command line parsing library. The "last --merge with multiple arguments" was not planned at all actually and appeared in a recent release as an afterthought.

  3. The issue will stay for a while until it's solved. Thank you for reporting it.

from habasi.

Related Issues (6)

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.