From 2154b0f24a6e08210dacfed94f5a8fe3ed979428 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 22 Aug 2023 19:08:00 +0800 Subject: [PATCH] rename --os-system to --platform and add some more explanation/examples (#15) --- README.md | 5 +++++ src/Main.hs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fcbd04..a7189f6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/Main.hs b/src/Main.hs index 8407ed8..642a76e 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -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 =