summaryrefslogtreecommitdiff
path: root/src/Propellor/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess2014-11-18 19:49:34 -0400
committerJoey Hess2014-11-18 19:49:34 -0400
commita0d5f41a6c3bb7ff69c78e014834c8ac92acca22 (patch)
tree32b11a3348fbe28e9ef1f61076abd1faad9dd38b /src/Propellor/CmdLine.hs
parentce859eaa9a329c3dd10869b1f73ee1fdf154bed5 (diff)
reorger to match usage
Diffstat (limited to 'src/Propellor/CmdLine.hs')
-rw-r--r--src/Propellor/CmdLine.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index cd491c6f..7c7bc65b 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -39,16 +39,16 @@ usage = do
processCmdLine :: IO CmdLine
processCmdLine = go =<< getArgs
where
- go ("--help":_) = usage
- go ("--spin":h:[]) = return $ Spin h
- go ("--update":h:[]) = return $ Update h
- go ("--boot":h:[]) = return $ Update h -- for back-compat
go ("--run":h:[]) = return $ Run h
+ go ("--spin":h:[]) = return $ Spin h
go ("--add-key":k:[]) = return $ AddKey k
go ("--set":f:c:[]) = withprivfield f c Set
go ("--dump":f:c:[]) = withprivfield f c Dump
go ("--edit":f:c:[]) = withprivfield f c Edit
go ("--list-fields":[]) = return ListFields
+ go ("--help":_) = usage
+ go ("--update":h:[]) = return $ Update h
+ go ("--boot":h:[]) = return $ Update h -- for back-compat
go ("--continue":s:[]) = case readish s of
Just cmdline -> return $ Continue cmdline
Nothing -> errorMessage "--continue serialization failure"