diff --git a/bin/syno.js b/bin/syno.js index 5a6a616..c82b332 100644 --- a/bin/syno.js +++ b/bin/syno.js @@ -67,7 +67,7 @@ execute = function(api, cmd, options) { }); }; -program.version('1.0.5').description('Synology Rest API Command Line').option('-c, --config ', "DSM Configuration file. Default to ~/" + CONFIG_DIR + "/" + CONFIG_FILE).option('-u, --url ', "DSM URL. Default to " + DEFAULT_PROTOCOL + "://" + DEFAULT_ACCOUNT + ":" + DEFAULT_PASSWD + "@" + DEFAULT_HOST + ":" + DEFAULT_PORT).option('-d, --debug', 'Enabling Debugging Output').on('--help', function() { +program.version('1.0.6').description('Synology Rest API Command Line').option('-c, --config ', "DSM Configuration file. Default to ~/" + CONFIG_DIR + "/" + CONFIG_FILE).option('-u, --url ', "DSM URL. Default to " + DEFAULT_PROTOCOL + "://" + DEFAULT_ACCOUNT + ":" + DEFAULT_PASSWD + "@" + DEFAULT_HOST + ":" + DEFAULT_PORT).option('-d, --debug', 'Enabling Debugging Output').on('--help', function() { console.log(' Commands:'); console.log(''); console.log(' filestation|fs [options] DSM File Station API'); diff --git a/package.json b/package.json index 67680e8..1743156 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "syno", - "version": "1.0.5", + "version": "1.0.6", "description": "Simple Node.js wrapper (browser included) and CLI for Synology DSM REST API.", "main": "dist/syno.js", "scripts": { diff --git a/src/cli/syno.coffee b/src/cli/syno.coffee index fdd86d6..b813d31 100644 --- a/src/cli/syno.coffee +++ b/src/cli/syno.coffee @@ -37,7 +37,7 @@ execute = (api, cmd, options)-> process.exit 0 program -.version '1.0.5' +.version '1.0.6' .description 'Synology Rest API Command Line' .option '-c, --config ', "DSM Configuration file. Default to ~/#{CONFIG_DIR}/#{CONFIG_FILE}" .option '-u, --url ',