-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option --store-dir
not mentioned in help text of build
#7587
Comments
--storedir
not mentioned in help texts--store-dir
not mentioned in help texts
The following works:
which matches the option not being a part of help text for build. However, it seems to be a global flag, which means it should be listed in |
it isn't shown because it's listed in cabal/cabal-install/src/Distribution/Client/Setup.hs Lines 370 to 400 in 7d4ce47
The original PR (#4623) does not state a reason for putting it there. I'd be in support of moving it to Ping @alexbiehl who originally added the flag |
It is a global flag so it is listed in
So the help tell us where we should put global flags and lists @andreasabel maybe we should close this? or change the title at least |
This was resolved by #7624 |
--store-dir
not mentioned in help texts--store-dir
not mentioned in help text of build
I think if a global option affects a command it should also be listed in the help text for this command. |
Well you cant set it after the build command so imo it would be pretty surprising for a user see it listed in Maybe we could do just that, list all global flags in all And improve the error when you set a general flag after a command instead: PS D:\dev\ws\haskell\cabal> cabal build --store-dir=D:\sd
Error: cabal.exe: unrecognized 'build' option `--store-dir=D:\sd' PS D:\dev\ws\haskell\cabal> cabal build --store-dir=D:\sd
`--store-dir` option is a global flag and should be set before the command but that is another issue. |
this one: #7704 |
E.g.
cabal build --help
mentions many options like--builddir=DIR
, but not--store-dir
.Issue lifted from #6866 (comment).
Docs at: https://cabal.readthedocs.io/en/latest/cabal-project.html#cmdoption-store-dir
Btw, not sure this option actually exists:
The text was updated successfully, but these errors were encountered: