Skip to content

Commit

Permalink
fix: remove private parameter, use access (BREAKING CHANGES)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed Oct 21, 2021
1 parent 6f6f9d0 commit 874069c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 1 addition & 8 deletions bin/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import commands from '../src/commands/index.js';

const argv = yargs(hideBin(process.argv))
yargs(hideBin(process.argv))
.strict()
.command(commands.serve)
.command(commands.build)
Expand Down Expand Up @@ -42,10 +42,3 @@ const argv = yargs(hideBin(process.argv))
)
.recommendCommands()
.help().argv;

if (argv.private) {
console.error(
'--private is deprecated, please use the --access (or -a) option instead'
);
console.error('for example: -a public -a private -a protected -a undefined');
}
6 changes: 0 additions & 6 deletions src/commands/shared_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ export const sharedInputOptions = {
type: 'array',
alias: 'pe'
},
private: {
describe: 'generate documentation tagged as private',
type: 'boolean',
default: false,
alias: 'p'
},
access: {
describe:
'Include only comments with a given access level, out of private, ' +
Expand Down

0 comments on commit 874069c

Please sign in to comment.