Skip to content

Commit

Permalink
Environment variable documentation update (fsprojects#2840)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrii Chebukin <[email protected]>
  • Loading branch information
Thorium and xperiandri authored Nov 12, 2024
1 parent 227e5d4 commit 048b97b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/core-commandlineparsing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ match DocoptResult.tryGetArgument "-m" results with

*Note the following links are permalinks to old commits. They are intended only as examples. You are encouraged to look at the current version too, because it's likely to have been updated.*

See also: https://fake.build/guide/core-targets.html#Script-with-arguments

A more sophisticated example can be found in the fake runner: [<ins>src/app/Fake.netcore/Program.fs#L204-L259</ins>](https://github.com/fsharp/FAKE/blob/64d871f5065412fe7b233025e454ccf3b89e46d7/src/app/Fake.netcore/Program.fs#L204-L259)

Or the target module:
Expand Down
6 changes: 6 additions & 0 deletions docs/guide/core-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ Now we have the following options:
## Script with arguments
If you don't call `Target.initEnvironment()` before you use the `Environment` module,
then FAKE will only use system and inline environment variables
(e.g. Windows: `set mything=123`) instead of parsing the command line `-e` params.
If you want multiple environment arguments, you can do `-e a=1 -e b=2`.
Example:
```fsharp
Expand Down

0 comments on commit 048b97b

Please sign in to comment.