Skip to content

Commit

Permalink
Silence runtime deprecation warning related to argparse.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyas committed Nov 26, 2020
1 parent f7f652b commit 5170e1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export function ParseFlags(args?: string[]): Options {
const verbose = parser.add_mutually_exclusive_group({required: false});
verbose.add_argument('--verbose', {
default: false,
action: 'storeTrue',
action: 'store_true',
dest: 'verbose',
});
verbose.add_argument('--noverbose', {action: 'storeFalse', dest: 'verbose'});
verbose.add_argument('--noverbose', {action: 'store_false', dest: 'verbose'});

parser.add_argument('--schema', {
default: undefined,
Expand Down Expand Up @@ -83,12 +83,12 @@ export function ParseFlags(args?: string[]): Options {
deprecated.add_argument('--deprecated', {
default: true,
help: 'Include deprecated Classes and Properties.',
action: 'storeTrue',
action: 'store_true',
dest: 'deprecated',
});
deprecated.add_argument('--nodeprecated', {
help: 'Skip deprecated Classes and Properties.',
action: 'storeFalse',
action: 'store_false',
dest: 'deprecated',
});
return parser.parse_args(args);
Expand Down

0 comments on commit 5170e1d

Please sign in to comment.