text: "use strict";
  
  const dedent = require("dedent");
  
  module.exports = filterOptions;
  
  function filterOptions(yargs) {
    // Only for 'run', 'exec', 'clean', 'ls', and 'bootstrap' commands
    const opts = {
      scope: {
        describe: "Include only packages with names matching the given glob.",
        type: "string",
      },
      ignore: {
        describe: "Exclude packages with names matching the given glob.",
        type: "string",
      },
      private: {
        describe: "Include private packages. Pass --no-private to exclude private packages.",
        type: "boolean",
        default: true,
      },
      since: {
        describe: dedent`
          Only include packages that have been updated since the specified [ref].
          If no ref is passed, it defaults to the most-recent tag.
        `,
        type: "string",
      },
      "include-filtered-dependents": {
        describe: dedent`
          Include all transitive dependents when running a command
          regardless of --scope, --ignore, or --since.
        `,
        boolean: true,
      },
      "include-filtered-dependencies": {
        describe: dedent`
          Include all transitive dependencies when running a command
          regardless of --scope, --ignore, or --since.
        `,
        boolean: true,
      },
    };
  
    return yargs.options(opts).group(Object.keys(opts), "Filter Options:");
  }
  