Coder Social home page Coder Social logo

Comments (5)

mrkkrp avatar mrkkrp commented on May 11, 2024

About too long combinations of options and metavars: yes, this is absolutely possible and I will probably implement it soon.


About description text: do you mean it should happen when description contains newlines?


Yeah, I know about that problem with indentation. In Emacs Lisp, there is (declare (indent …)) thing, I'm not sure there is something similar in Common Lisp. This is because Emacs Lisp is tightly integrated with the editor, while Common Lisp cannot know anything about indentation. If you're using Emacs, you probably using SLIME. Please ask how custom macro can declare (if possible) how they should be indented. You can use this example to demonstrate the issue.

from unix-opts.

mrkkrp avatar mrkkrp commented on May 11, 2024

@noctuid, Aha, I figured out that if we use &body instead of &rest in define-opts indentation is fixed. No worries, I'll commit necessary changes soon.

from unix-opts.

mrkkrp avatar mrkkrp commented on May 11, 2024

@noctuid, I've decided that if combination of options and meta-var is longer than 25 characters (there are 2 character padding on the left, it doesn't count), then description will be put on the second file. This shouldn't look too ugly.

from unix-opts.

noctuid avatar noctuid commented on May 11, 2024

Great. Thank you for the changes. I'll try them when I get a chance.

from unix-opts.

noctuid avatar noctuid commented on May 11, 2024

@mrkkrp Alright, it looks good. Starting the description on the second line is what other option parsing libraries I've used in other languages do (and makes more sense than cramming all the text to the right). Thank you.

from unix-opts.

Related Issues (16)

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.