@fett/synology-api 0.0.1-beta.7 → 0.0.1-beta.8

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.
package/lib/cjs/index.js CHANGED
@@ -714,7 +714,7 @@ var apiCmdRegister = () => {
714
714
  function loadCli() {
715
715
  return __async(this, null, function* () {
716
716
  const pkg = yield import_fs_extra2.default.readJSON(import_path2.default.join(__dirname, "../../package.json"));
717
- import_commander3.program.name("synology").usage("<command> [options]").description("synology api cli tool").version(pkg.version);
717
+ import_commander3.program.name("synology").usage("<command> [options]").description("synology api cli tool").version(pkg.version, "-v, --version", "output the version number");
718
718
  configCmdRegister();
719
719
  apiCmdRegister();
720
720
  import_commander3.program.parse(process.argv);
@@ -21,7 +21,7 @@ export function loadCli() {
21
21
  .name("synology")
22
22
  .usage("<command> [options]")
23
23
  .description("synology api cli tool")
24
- .version(pkg.version);
24
+ .version(pkg.version, "-v, --version", "output the version number");
25
25
  // register commands
26
26
  configCmdRegister();
27
27
  apiCmdRegister();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fett/synology-api",
3
- "version": "0.0.1-beta.7",
3
+ "version": "0.0.1-beta.8",
4
4
  "description": "synology api for nodejs",
5
5
  "module": "./lib/esm/index.js",
6
6
  "main": "./lib/cjs/index.js",