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

Flags specified after the file-to-open are ignored #73

Closed
fake-name opened this issue Apr 4, 2019 · 4 comments
Closed

Flags specified after the file-to-open are ignored #73

fake-name opened this issue Apr 4, 2019 · 4 comments
Labels

Comments

@fake-name
Copy link

fake-name commented Apr 4, 2019

durr@testcnc:~$ rmate /usr/lib/tcltk/linuxcnc/bin/halshow.tcl
File /usr/lib/tcltk/linuxcnc/bin/halshow.tcl is not writable! Use -f to open anyway.
durr@testcnc:~$ rmate /usr/lib/tcltk/linuxcnc/bin/halshow.tcl -f
File /usr/lib/tcltk/linuxcnc/bin/halshow.tcl is not writable! Use -f to open anyway.
durr@testcnc:~$ rmate -f /usr/lib/tcltk/linuxcnc/bin/halshow.tcl
< file opens >

For shell commands, I generally assume that flags can go anywhere. However, rmate seems to only parse arguments rmate <here> filename.

This is, well, certainly unexpected, if not a huge issue. It'd be nice if arguments to rmate behaved like every other well-behaved command-line tool.

@aurora
Copy link
Owner

aurora commented Apr 5, 2019

Mmmm ... thanks for the suggestion, i'll have a look into this.

@aurora
Copy link
Owner

aurora commented Apr 6, 2019

I've created a branch for this and i think i fixed it - could you give it a try?

@aurora
Copy link
Owner

aurora commented Apr 8, 2019

I've merged this into the master branch, because i think it's fixed now.

@aurora aurora closed this as completed Apr 8, 2019
@fake-name
Copy link
Author

Cool! Sorry, I haven't had a chance to poke at it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants