Comments (5)
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.
@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.
@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.
Great. Thank you for the changes. I'll try them when I get a chance.
from unix-opts.
@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)
- Required options in conflict with typical use of --help HOT 9
- Error: Unbound variable: CCL::COMMAND-LINE-ARGUMENTS HOT 2
- Condition names aren't exported
- unix-opts seems to be losing a few options HOT 5
- Why not add 'when-option' to the package? HOT 1
- Can you add the ability to specify default values?
- Would it make sense to default `arg-parser` to `#'identity`? HOT 2
- A shorter unix-opts:define-opts for "common-case" worth the code? HOT 5
- CLISP argv HOT 6
- Why prefix and not exact-match? HOT 2
- Removing two hardcoded strings HOT 1
- get-opts uses argv when nil is explicitly passed as argument HOT 7
- Making a new release?
- Maintaining unix-opts HOT 9
- Unbound variable: CCL::COMMAND-LINE-ARGUMENTS on CCL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unix-opts.