Skip to content

Commit

Permalink
feat: prefer nested CLI flags
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed May 8, 2022
1 parent b46db4b commit 1bf08cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CLI flag options:
--ignore-private Exclude private packages. True by default.
--ignore-packages Packages list to be ignored on bumping process (append to the ones that already exist at package.json workspaces)
--deps.bump Define deps version updating rule. Allowed: override, satisfy, inherit.
--deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit.
--deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit.
--tag-format Format to use for creating tag names. Should include "name" and "version" vars. Default: "${name}@${version}" generates "package-name@1.0.0"
--help Help info.

Expand Down
5 changes: 5 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

import meow from "meow";
import process from "process";
import { toPairs, set } from "lodash-es";
import runner from "./runner.js";

Expand Down Expand Up @@ -29,6 +30,10 @@ const cli = meow(
`,
{
importMeta: import.meta,
get argv() {
const argvStart = process.argv.includes("--") ? process.argv.indexOf("--") + 1 : 2;
return process.argv.slice(argvStart);
},
flags: {
sequentialInit: {
type: "boolean",
Expand Down

0 comments on commit 1bf08cc

Please sign in to comment.