Skip to content

Commit 56485ed

Browse files
committed
New release.
1 parent da591f5 commit 56485ed

File tree

4 files changed

+2
-31
lines changed

4 files changed

+2
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "argparse-ts",
3-
"version": "0.8.1",
3+
"version": "0.9.0",
44
"description": "Modern CLI arguments parser for node.js",
55
"license": "MIT",
66
"repository": {

src/classes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ import { helpAction, versionAction } from "./utils/actions";
2020
import {
2121
ArgsParserError,
2222
ArgsParserException,
23-
isExceptionInstanceOf,
24-
RouterStopException,
2523
StopException,
24+
isExceptionInstanceOf,
2625
} from "./exceptions";
2726

2827
/**

src/exceptions.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -72,32 +72,6 @@ export class StopException extends ArgsParserException {
7272
}
7373
}
7474

75-
/**
76-
* Base exception class for all errors thrown by the router.
77-
*
78-
* @category Exceptions
79-
*/
80-
export class RouterException extends Error {
81-
public readonly names: string[] = [];
82-
83-
constructor(message?: string) {
84-
super(message);
85-
this.names.push('RouterException');
86-
}
87-
}
88-
89-
/**
90-
* Thrown when the router should stop processing arguments.
91-
*
92-
* @category Exceptions
93-
*/
94-
export class RouterStopException extends ArgsParserException {
95-
constructor(message?: string) {
96-
super(message);
97-
this.names.push('RouterStopException');
98-
}
99-
}
100-
10175
/**
10276
* Checks if the given exception is an instance of the specified class.
10377
*

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
ArgumentNameError,
2323
ArgumentValueError,
2424
StopException,
25-
RouterStopException,
2625
isExceptionInstanceOf,
2726
} from "./exceptions";
2827

@@ -47,6 +46,5 @@ export {
4746
ArgumentNameError,
4847
ArgumentValueError,
4948
StopException,
50-
RouterStopException,
5149
isExceptionInstanceOf,
5250
}

0 commit comments

Comments
 (0)