diff options
author | Joey Hess <joey@kitenet.net> | 2012-02-14 12:40:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-02-14 12:40:40 -0400 |
commit | 90a8b38ac048d2a9a7caeb68d70d5148fb4148b8 (patch) | |
tree | 8095c25b6dbe1308151bd2fd20a88ef88e418cb2 /Types/Command.hs | |
parent | 33e03d58ae2a351b137ca8e32fa704d240e626e0 (diff) |
set oneshot mode on a per-command basis
Avoids ugly (and test suite failing) hack in Command.Version
Diffstat (limited to 'Types/Command.hs')
-rw-r--r-- | Types/Command.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Types/Command.hs b/Types/Command.hs index 1233df2cd..6dbcf48d1 100644 --- a/Types/Command.hs +++ b/Types/Command.hs @@ -36,6 +36,7 @@ data Command = Command { cmdoptions :: [Option] -- command-specific options , cmdnorepo :: Maybe (IO ()) -- an action to run when not in a repo , cmdcheck :: [CommandCheck] -- check stage + , cmdoneshot :: Bool -- don't save state after running , cmdname :: String , cmdparamdesc :: String -- description of params for usage , cmdseek :: [CommandSeek] -- seek stage |