question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why does --version prints the bin name too?

See original GitHub issue

This seems odd to me. If yarn and npm are anything to go by, the --version flag should only print the version number. 😊

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lukeedcommented, Jul 29, 2019

Forgot to update you @aleclarson – you can customize the version content by overriding the _version method of your program.

This is the default, accessing program name & its version thru this access:

_version() {
	console.log(`${this.bin}, ${this.ver}`);
}

To customize:

const prog = sade('foo');

// Customize `--version` output
// ~> printing the string directly instead `version()` setter
prog._version = () => console.log('v1.2.3');
1reaction
lukeedcommented, Jun 27, 2019

Off the top of my head 😉

$ next --version
# Next.js v8.1.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Aerospike Bin Length Less than 14 - Stack Overflow
In short, the answer is no. Bin name is hard coded to be 14 characters or less. It is stored along with every...
Read more >
Why is it better to use "#!/usr/bin/env NAME" instead of "#!/path ...
It's worth noting that, if you want to use a specific interpreter version, /usr/bin/env is still better. simply because there usually are ...
Read more >
3.4. /bin : Essential user command binaries (for use by all users)
Command binaries that are not essential enough to place into /bin must be placed in /usr/bin , instead. Items that are required only...
Read more >
Known Limitations - Aerospike Documentation
Object What Description Bin Name, length and characters Histogram Interval between sampling slices For 10 second slices, maximum: 86400 seco... Namespace Size of each file or...
Read more >
You receive error messages when opening an Office document
If the filename or path is long, try renaming the file or copying it to a different folder. Screenshot of the error message....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found