Skip to content

Commit

Permalink
fix: tutorial for dependencies
Browse files Browse the repository at this point in the history
Fixes #126
  • Loading branch information
gnikit committed Sep 13, 2023
1 parent 7fa8f9e commit f73b455
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pages/tutorial/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The *test-drive* package is added in the *dev-dependencies* table as shown below
:language: toml
:caption: fpm.toml
:lines: 1-10
:emphasize-lines: 8-10
:emphasize-lines: 7-9
```

:::{note}
Expand Down Expand Up @@ -112,7 +112,7 @@ This can be used for adding a command line interface package, which is only used
```{literalinclude} ../../src/tutorial/dependencies/fpm.toml
:language: toml
:caption: fpm.toml
:emphasize-lines: 14-15
:emphasize-lines: 13-14
```

We restructure our main program a bit for using [M\_CLI2] to handle the command line input.
Expand All @@ -130,7 +130,7 @@ Our final main program looks like
Again we run a quick check using fpm

```{code-block} text
:emphasize-lines: 2, 14
:emphasize-lines: 2, 13
❯ fpm run -- demo substitute fpm.toml
name = "substitute"
version = "0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions src/tutorial/dependencies/fpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name = "demo"
version = "0.1.0"

[dependencies]
stdlib.git = "https://github.com/fortran-lang/stdlib"
stdlib.branch = "stdlib-fpm"
stdlib = "*"

[dev-dependencies]
test-drive.git = "https://github.com/fortran-lang/test-drive"
Expand Down

0 comments on commit f73b455

Please sign in to comment.