@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 +1 -1
- package/lib/esm/cli/index.js +1 -1
- package/package.json +1 -1
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);
|
package/lib/esm/cli/index.js
CHANGED
|
@@ -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();
|