Response from upstream:

    The pastebinit -P option seems to now require an argument even
    though the option didn't require one before...

Yes, because 1.) this allows one to both enable and disable private pasting via command-line option which wasn't possible before, and 2.) there are pastebins that offer multiple levels on private pastes.

    ...and the docs mention a default.

Yes, like there are defaults on other options that require an argument when specified on the command line. So in this case, if you just want to make a private paste (and the bin only got one level of privacy), since the default is indeed |1| now whereas before private pasting was disabled by default, you'd not need to pass the option at all.

Basically, you don't need to specify `-P` at all - it defaults to 'hidden' by default and does NOT need `-P` specified unless you want to change the default privacy level of 1.


This could be better specified in documentation and help output, or with a better mechanism to handle options (currently pastebinit is using getopt which is considered deprecated and undeveloped, so add this to the devel tasks for us upstream to modify this and use argparse or similar to better refine options).


Thomas

Reply via email to