https://pantsbuild.org/ logo
#general
Title
# general
b

brief-engineer-67497

11/12/2018, 3:33 PM
I missed dryrun >_<
a

aloof-angle-91616

11/12/2018, 4:02 PM
sometimes the options can be a little confusing — were you able to find this just from
./pants help
, or somewhere else?
b

brief-engineer-67497

11/12/2018, 5:08 PM
I reread the doc and noticed the --no-dryrun in the last paragraph https://www.pantsbuild.org/publish.html
a

aloof-angle-91616

11/12/2018, 5:45 PM
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

brief-engineer-67497

11/12/2018, 5:47 PM
no problem
to be honest then I struggled to find the real option working for me i.e :
--no-publish-jar-dryrun
a

aloof-angle-91616

11/12/2018, 5:50 PM
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

brief-engineer-67497

11/12/2018, 5:55 PM
thanks for the tips !