@flydocs/cli 0.5.0-beta.1 → 0.5.0-beta.2

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/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME;
15
15
  var init_constants = __esm({
16
16
  "src/lib/constants.ts"() {
17
17
  "use strict";
18
- CLI_VERSION = "0.5.0-beta.1";
18
+ CLI_VERSION = "0.5.0-beta.2";
19
19
  CLI_NAME = "flydocs";
20
20
  PACKAGE_NAME = "@flydocs/cli";
21
21
  }
@@ -2640,8 +2640,11 @@ var SUB_COMMANDS = /* @__PURE__ */ new Set([
2640
2640
  "self-update"
2641
2641
  ]);
2642
2642
  var userArgs = process.argv.slice(2);
2643
+ var hasMetaFlag = userArgs.some(
2644
+ (a) => a === "--version" || a === "--help" || a === "-h"
2645
+ );
2643
2646
  var firstPositional = userArgs.find((a) => !a.startsWith("-"));
2644
- if (!firstPositional || !SUB_COMMANDS.has(firstPositional)) {
2647
+ if (!hasMetaFlag && (!firstPositional || !SUB_COMMANDS.has(firstPositional))) {
2645
2648
  process.argv.splice(2, 0, "install");
2646
2649
  }
2647
2650
  var main = defineCommand8({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flydocs/cli",
3
- "version": "0.5.0-beta.1",
3
+ "version": "0.5.0-beta.2",
4
4
  "type": "module",
5
5
  "description": "FlyDocs AI CLI — install, setup, and manage FlyDocs projects",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0-beta.1",
2
+ "version": "0.5.0-beta.2",
3
3
  "sourceRepo": "github.com/plastrlab/flydocs-core",
4
4
  "tier": "cloud",
5
5
  "setupComplete": false,
@@ -1 +1 @@
1
- 0.5.0-beta.1
1
+ 0.5.0-beta.2
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0-beta.1",
2
+ "version": "0.5.0-beta.2",
3
3
  "description": "FlyDocs Core - Manifest of all managed files",
4
4
  "repository": "github.com/plastrlab/flydocs-core",
5
5