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

support -t and -w options before required arguments? #76

Open
lsloan opened this issue Dec 13, 2022 · 1 comment
Open

support -t and -w options before required arguments? #76

lsloan opened this issue Dec 13, 2022 · 1 comment

Comments

@lsloan
Copy link

lsloan commented Dec 13, 2022

To follow Unix/Linux CLI style a little more closely, could you add support for the options -t, -w, etc. to appear before the required positional arguments? That is, currently the open command only allows the -w option after the URL positional argument, like this…

chrome-cli open url -w id

It would be helpful, especially to users with years of Unix/Linux CLI experience, if the -w option would be allowed before the URL positional argument, like this…

chrome-cli open -w id url

And the same would apply to all other CLI options for all of the commands.

It could be implemented to allow the options before OR after the positional arguments, making it convenient and backwards compatible with the current syntax.

@prasmussen
Copy link
Owner

I totally agree with this. If I ever rewrite this tool in a more modern language I will use a proper args lib that can handle this.

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