0k / shyaml

YAML for command line
BSD 2-Clause "Simplified" License
767 stars 57 forks source link

minor bug fix #18

Closed trcook closed 9 years ago

trcook commented 9 years ago

This is a very minor bugfix -- feel free to reject.

minor change to line 385 -- upon unsuccessful exit, program now replies:

Error: Invalid argument.
Usage:

    shyaml (-h|--help)
    shyaml ACTION KEY [DEFAULT]

Previously:

Traceback (most recent call last):
  File "/usr/local/bin/shyaml", line 389, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/bin/shyaml", line 385, in main
    die("Invalid argument.\n%s" % usage)
NameError: global name 'usage' is not defined
vaab commented 9 years ago

Thanks. Wow, the fact that so obvious exception remains startles me. I guess I never hit this case despite the dozens of places I use this piece of software. Many thanks for your report and your interest for shyaml. Even small report count.