cyber-elx 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyber-elx",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "CyberOcean CLI tool to upload/download ELX custom pages",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -15,13 +15,7 @@ program
15
15
  .description('CLI tool to upload/download ELX custom pages');
16
16
 
17
17
  program
18
- .option('-v, -V, --version', 'output the version number')
19
- .hook('preAction', (thisCommand) => {
20
- if (thisCommand.opts().version) {
21
- console.log(packageJson.version);
22
- process.exit(0);
23
- }
24
- });
18
+ .version(packageJson.version, '-v, --version', 'Output the version number');
25
19
 
26
20
  program
27
21
  .command('init')