nishanths / license

Command line license text generator.
MIT License
663 stars 83 forks source link

Position of the arguments can cause app to ignore arguments #16

Closed leighmcculloch closed 5 years ago

leighmcculloch commented 7 years ago

Summary

Position of the arguments can cause app to ignore arguments. If the arguments -o LICENSE are placed after the license name then they are ignored.

What I expected to happen

I expected the following command when executed would output the license into the file LICENSE.

license mit -o LICENSE

What happened

The license was outputted to stdout and the LICENSE file was not written.

leighmcculloch commented 7 years ago

@nishanths: I'm happy to work on a change to change the behavior to what I expected above, if you're 👍.

nishanths commented 7 years ago

yes, thank you! much appreciated.

leighmcculloch commented 5 years ago

Turns out this is the expected behavior with the Go flag library, so is behaving as expected.