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

more explicit checks on clj-new cli parameters #79

Closed
behrica opened this issue Sep 16, 2021 · 2 comments
Closed

more explicit checks on clj-new cli parameters #79

behrica opened this issue Sep 16, 2021 · 2 comments

Comments

@behrica
Copy link

behrica commented Sep 16, 2021

I still think "something" could be done to make clj-new more beginner friendly.

It is "very relaxed", regarding parameters

I can type this:

clojure -X:project/new clj-new/create :template clj-py-r-template  :name me/my-app :blubblub aaaa

and it will ignore the extra, wrong parameters.

I know that this is partially Clojure tradition, but a "shell tool", ment for beginners as well, should maybe check for this.
(like most other tools in bash do)

@seancorfield
Copy link
Owner

I initially thought that additional key/value pairs were passed into the template itself -- per the help text(!) -- but it turns out that isn't true so I can spot "unknown" options here and complain about them.

@seancorfield
Copy link
Owner

(! 724)-> clojure -X:new :name foo/bar :blubblub aaa
Ignoring the following unknown (misspelled?) options:
* :blubblub aaa
...

It goes on and creates the project if there are no errors but at least it tells you what it is ignoring.

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