guyzmo / git-repo

Git-Repo: CLI utility to manage git services from your workspace
https://webchat.freenode.net/?channels=#git-repo
Other
842 stars 86 forks source link

Use '\\' too as separator when printing help #130

Closed sukiletxe closed 7 years ago

sukiletxe commented 7 years ago

When using git-repo -hon Windows, I noticed that the full path is displayed in every command's help. This is because '/' is used as the path separator when calling sys.argv[0] (the last item is taken from that split). On Windows, there is no "/", but "\".

guyzmo commented 7 years ago

wha, so git-repo actually works on windows‽ 😀♥

sure I can make a fix for that, using os.path.sep instead. Don't hesitate to notify of any other defect you can catch specific to working on windows.

sukiletxe commented 7 years ago

Well, to be honest, I just tried the help thing. So I don't know if it actually works. Will report back when I have the chance to test it more.