I missed dryrun >_<
# general
b
I missed dryrun >_<
a
sometimes the options can be a little confusing — were you able to find this just from
./pants help
, or somewhere else?
b
I reread the doc and noticed the --no-dryrun in the last paragraph https://www.pantsbuild.org/publish.html
a
i have been in this exact position before (looking for this option) and it was a while ago and i think i remember this happening to someone else inside twitter. the publish docs look pretty good (from a glance?), so this may be fine for now, but i'm trying to find ways to make options more discoverable without having to read all of
./pants options
or jumping into the pants codebase itself. glad you found it, and thanks for providing the source!
b
no problem
to be honest then I struggled to find the real option working for me i.e :
--no-publish-jar-dryrun
a
ah! one way to avoid some of that is to use the somewhat-documented syntax for options provided after goals -- something like
./pants publish.jar --no-dryrun <target>
will do the same as
./pants --no-publish-jar-dryrun publish <target>
(the
.jar
after
publish
only affects scopes of options applied after it, not the targets selected. we're working on streamlining this interface)
./pants help publish
has this option too (sometimes
help-advanced
is useful, for options registered with
advanced=True
)
only letting you know for the future -- discoverability of options is important to me because i think pants's options system is great but also can be complex at first
b
thanks for the tips !