scothis / serv

Serve static HTTP requests from any directory, ad hoc
MIT License
24 stars 8 forks source link

Provide a --version option #11

Closed matthewp closed 9 years ago

matthewp commented 9 years ago

This adds a -v and --version for printing the version number.

scothis commented 9 years ago

Looks good, any opinion on changing the output to:

console.log('serv %s', pkg.version);
matthewp commented 9 years ago

I checked a few unix tools and it's not uncommon so yeah, I can do that.

matthewp commented 9 years ago

@scothis updated with your suggestion.

scothis commented 9 years ago

Thanks

scothis commented 9 years ago

Published as 0.2.2

matthewp commented 9 years ago

Wow you're quick :)