Skip to content

Commit

Permalink
rename --os-system to --platform and add some more explanation/exampl…
Browse files Browse the repository at this point in the history
…es (#15)
  • Loading branch information
juhp committed Aug 22, 2023
1 parent 9c8c3a8 commit 2154b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ the projects in subdirs under the current directory or
all matching `.stack-work` dirs from the current directory and below
respectively.

Note is you have different ghc variants/archs installed
you may need to use the `--platform` to choose which one to query/clean:
examples include 'x86_64-linux-tinfo6', 'x86_64-linux', 'aarch64-linux-nix',
'x86_64-osx', 'aarch64-osx', etc.

### Example usage
List a project's builds:
```ShellSession
Expand Down
4 changes: 2 additions & 2 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ main = do
keepOption = optionalWith auto 'k' "keep" "INT"
"number of project builds per ghc version [default 5]" 5

systemOpt = strOptionWith 'o' "os-system" "SYSTEM"
"Specify which of the OS platforms to work on (eg 'x86_64-linux-tinfo6' or 'aarch64-linux-nix', etc)"
systemOpt = strOptionWith 'o' "platform" "SYSTEM"
"Specify which OS platform to work on (eg 'x86_64-linux-tinfo6', 'aarch64-linux-nix', 'x86_64-osx', 'aarch64-osx', etc)"

withRecursion :: Bool -> Maybe Recursion -> IO () -> IO ()
withRecursion needinstall mrecursion =
Expand Down

0 comments on commit 2154b0f

Please sign in to comment.