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

Too many arguments #118

Closed
MalteT opened this issue Oct 30, 2021 · 2 comments · Fixed by #119
Closed

Too many arguments #118

MalteT opened this issue Oct 30, 2021 · 2 comments · Fixed by #119

Comments

@MalteT
Copy link
Contributor

MalteT commented Oct 30, 2021

Hey, thanks for the awesome project!

Is there a reason to forbid the following usage?

$ fend 1 + 1

I know I can just do

$ fend "1 + 1"

but it could just work without quotes.

@printfn
Copy link
Owner

printfn commented Oct 30, 2021

Hi, thanks for the suggestion! I'll look into implementing this soon.

The only reason it's not currently implemented is that it does make command-line argument parsing a little bit more complicated, and because many operators (like *) usually need to be quoted anyway.

@MalteT
Copy link
Contributor Author

MalteT commented Oct 30, 2021

You're right about the * (and ! probably aswell), I think it might still be a nice addition and would mainly resolve to something like args.skip(1).join(" ") plus the detection of the special arguments (-h and such). If you'ld agree, I could draft a PR tomorrow.

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

Successfully merging a pull request may close this issue.

2 participants