From e08accb35adef35abf3fa45d4baa9a799321506f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Apr 2014 20:47:25 -0400 Subject: nicer parameters when run inside docker --- Propellor/CmdLine.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Propellor/CmdLine.hs') diff --git a/Propellor/CmdLine.hs b/Propellor/CmdLine.hs index 626828aa..c267e7d4 100644 --- a/Propellor/CmdLine.hs +++ b/Propellor/CmdLine.hs @@ -39,6 +39,7 @@ processCmdLine = go =<< getArgs Just cmdline -> return $ Continue cmdline Nothing -> errorMessage "--continue serialization failure" go ("--chain":h:[]) = return $ Chain h + go ("--docker":h:[]) = return $ Docker h go (h:[]) | "--" `isPrefixOf` h = usage | otherwise = return $ Run h @@ -62,7 +63,7 @@ defaultMain getprops = do go _ (Chain host) = withprops host $ \ps -> do r <- ensureProperties' ps putStrLn $ "\n" ++ show r - go _ (ChainDocker host) = Docker.chain host + go _ (Docker host) = Docker.chain host go True cmdline@(Spin _) = buildFirst cmdline $ go False cmdline go True cmdline = updateFirst cmdline $ go False cmdline go False (Spin host) = withprops host $ const $ spin host -- cgit v1.2.3