This repository has been archived by the owner. It is now read-only.

Print only base binary name in usage string (win) #358

Merged
merged 1 commit into from Mar 27, 2015

Conversation

Projects
None yet
3 participants
@ahmetb
Contributor

ahmetb commented Mar 27, 2015

When boot2docker is called from msys bash shell, usage string prints the
full path of the binary (e.g. c:\program file\boot2docker for windows\boot2docker.exe)
in the short usage string.

This change fixes that without breaking the behavior on unix systems or
cmd.exe/powershell on windows which already print the short binary name

Before/after

image

Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
cc: @tianon

Print only base binary name in usage string (win)
When `boot2docker` is called from msys bash shell, usage string prints the
full path of the binary (e.g. `c:\program file\boot2docker for
windows\boot2docker.exe`) in the short usage string.

This change fixes that without breaking the behavior on unix systems or
cmd.exe/powershell on windows which already print the short binary name

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@tianon

This comment has been minimized.

Contributor

tianon commented Mar 27, 2015

LGTM

cc @gmlewis @Moghedrin

@gmlewis

This comment has been minimized.

Contributor

gmlewis commented Mar 27, 2015

LGTM

gmlewis added a commit that referenced this pull request Mar 27, 2015

Merge pull request #358 from ahmetalpbalkan/usage-string-short
Print only base binary name in usage string (win)

@gmlewis gmlewis merged commit c427ded into boot2docker:master Mar 27, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@ahmetb ahmetb deleted the ahmetb:usage-string-short branch Mar 27, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.