confluence-cli 1.25.0 → 1.25.1

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/bin/confluence.js CHANGED
@@ -1854,6 +1854,7 @@ function printTree(nodes, config, options, depth = 1) {
1854
1854
 
1855
1855
  // Exported for testing
1856
1856
  module.exports = {
1857
+ program,
1857
1858
  _test: {
1858
1859
  EXPORT_MARKER,
1859
1860
  writeExportMarker,
package/bin/index.js CHANGED
@@ -21,4 +21,9 @@ if (!nodeVersion.startsWith('v') ||
21
21
  }
22
22
 
23
23
  // Load the main CLI application
24
- require('./confluence.js');
24
+ const { program } = require('./confluence.js');
25
+
26
+ if (process.argv.length <= 2) {
27
+ program.help({ error: false });
28
+ }
29
+ program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confluence-cli",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "A command-line interface for Atlassian Confluence with page creation and editing capabilities",
5
5
  "main": "index.js",
6
6
  "bin": {