Skip to content

Commit 874069c

Browse files
fix: remove private parameter, use access (BREAKING CHANGES)
1 parent 6f6f9d0 commit 874069c

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Diff for: bin/documentation.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import yargs from 'yargs';
66
import { hideBin } from 'yargs/helpers';
77
import commands from '../src/commands/index.js';
88

9-
const argv = yargs(hideBin(process.argv))
9+
yargs(hideBin(process.argv))
1010
.strict()
1111
.command(commands.serve)
1212
.command(commands.build)
@@ -42,10 +42,3 @@ const argv = yargs(hideBin(process.argv))
4242
)
4343
.recommendCommands()
4444
.help().argv;
45-
46-
if (argv.private) {
47-
console.error(
48-
'--private is deprecated, please use the --access (or -a) option instead'
49-
);
50-
console.error('for example: -a public -a private -a protected -a undefined');
51-
}

Diff for: src/commands/shared_options.js

-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ export const sharedInputOptions = {
4545
type: 'array',
4646
alias: 'pe'
4747
},
48-
private: {
49-
describe: 'generate documentation tagged as private',
50-
type: 'boolean',
51-
default: false,
52-
alias: 'p'
53-
},
5448
access: {
5549
describe:
5650
'Include only comments with a given access level, out of private, ' +

0 commit comments

Comments
 (0)