Version uses binary name instead of hugo
authorDan Hersam <dan@hersam.com>
Wed, 28 Jan 2015 01:09:10 +0000 (20:09 -0500)
committerbep <bjorn.erik.pedersen@gmail.com>
Wed, 28 Jan 2015 08:43:12 +0000 (09:43 +0100)
commit2d8e15a5651408fe40b7365334625c487625a1e0
treeaef5f71ebf0359d707cc14db7841d41df2adef80
parent06b1a88358e69f4182fdd82da998810054f5a88f
Version uses binary name instead of hugo

On Windows the binary name is hugo.exe and running hugo version results in
this error:
    GetFileAttributesEx D:\Dev\Go\gopath\bin\hugo: The system cannot find the file specified.

This fixes that error and allows the binary name to be something other
than hugo on any OS.
commands/version.go