Skip to content

Commit

Permalink
docs(flags): update deprecated module notices (#4640)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Apr 24, 2024
1 parent b211534 commit d4490a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ requirements:
| [bytes](https://jsr.io/@std/bytes) | Settled | [![JSR](https://jsr.io/badges/@std/bytes)](https://jsr.io/@std/bytes) |
| [cli](https://jsr.io/@std/cli) | Unstable | [![JSR](https://jsr.io/badges/@std/cli)](https://jsr.io/@std/cli) |
| [collections](https://jsr.io/@std/collections) | Settled | [![JSR](https://jsr.io/badges/@std/collections)](https://jsr.io/@std/collections) |
| [console](https://jsr.io/@std/console) | Unstable | [![JSR](https://jsr.io/badges/@std/console)](https://jsr.io/@std/console) |
| [console](https://jsr.io/@std/console) | Deprecated | [![JSR](https://jsr.io/badges/@std/console)](https://jsr.io/@std/console) |
| [crypto](https://jsr.io/@std/crypto) | Settled | [![JSR](https://jsr.io/badges/@std/crypto)](https://jsr.io/@std/crypto) |
| [csv](https://jsr.io/@std/csv) | Settled | [![JSR](https://jsr.io/badges/@std/csv)](https://jsr.io/@std/csv) |
| [data_structures](https://jsr.io/@std/data_structures) | Unstable | [![JSR](https://jsr.io/badges/@std/data-structures)](https://jsr.io/@std/data-structures) |
Expand Down
13 changes: 8 additions & 5 deletions flags/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
* console.dir(parse(Deno.args));
* ```
*
* @deprecated This will be removed in 1.0.0. Import from
* {@link https://deno.land/std/cli/parse_args.ts} instead.
* @deprecated Use
* {@linkcode https://jsr.io/@std/cli/doc/parse-args/~/parseArgs | parseArgs}
* instead. This module will be removed once the Standard Library migrates to
* {@link https://jsr.io/ | JSR}.
*
* @module
*/
Expand Down Expand Up @@ -423,9 +425,10 @@ function hasKey(obj: NestedMapping, keys: string[]): boolean {
* // parsedArgs: { foo: true, bar: "baz", _: ["./quux.txt"] }
* ```
*
* @deprecated This will be removed in 1.0.0. Use
* {@linkcode https://deno.land/std/cli/parse_args.ts?s=parseArgs | parseArgs}
* instead.
* @deprecated Use
* {@linkcode https://jsr.io/@std/cli/doc/parse-args/~/parseArgs | parseArgs}
* instead. This module will be removed once the Standard Library migrates to
* {@link https://jsr.io/ | JSR}.
*/
export function parse<
TArgs extends Values<
Expand Down

0 comments on commit d4490a9

Please sign in to comment.