steeloverseer icon indicating copy to clipboard operation
steeloverseer copied to clipboard

Special case for working on a single file script

Open ethercrow opened this issue 8 years ago • 5 comments

When I'm working on a script named "foo.py", I'd like to use sos foo.py as a shorthand for sos foo.py -c foo.py. The former invocation does nothing, so this change should not break anything.

ethercrow avatar Sep 15 '17 14:09 ethercrow

I'm a bit overwhelmed with work at the moment, but I would accept a PR for this feature ;)

schell avatar Sep 18 '17 17:09 schell

I assume you'd (always?) rather run ./file when file is touched, in case . is not in your PATH.

mitchellwrosen avatar Sep 18 '17 20:09 mitchellwrosen

I'm not so sure about this request as it saves only a little typing. @ethercrow is there any other reason you prefer not to write foo.py -c ./foo.py?

schell avatar Sep 18 '17 20:09 schell

No, only repetition. I could easily make a shell shorthand sos1 for this, so no worries.

ethercrow avatar Sep 18 '17 20:09 ethercrow

I'm slightly in favor, as you're right it doesn't clash with any syntax. Currently, running sos without any -c arguments (and no yaml file) is basically a mistake :)

mitchellwrosen avatar Sep 19 '17 02:09 mitchellwrosen