Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. i'm sorry what

i'm sorry what

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
5 Indlæg 2 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • rune@social.sound-city.dkR This user is from outside of this forum
    rune@social.sound-city.dkR This user is from outside of this forum
    rune@social.sound-city.dk
    wrote sidst redigeret af
    #1

    i'm sorry what

    /usr/bin/pgbouncer_exporter --no-help
    usage: pgbouncer_exporter []
    Flags:
    -h, --[no-]help                Show context-sensitive help (also try --help-long and --help-man).

    --help and --no-help does the same thing, what are we doing here??

    rune@social.sound-city.dkR 1 Reply Last reply
    0
    • rune@social.sound-city.dkR rune@social.sound-city.dk

      i'm sorry what

      /usr/bin/pgbouncer_exporter --no-help
      usage: pgbouncer_exporter []
      Flags:
      -h, --[no-]help                Show context-sensitive help (also try --help-long and --help-man).

      --help and --no-help does the same thing, what are we doing here??

      rune@social.sound-city.dkR This user is from outside of this forum
      rune@social.sound-city.dkR This user is from outside of this forum
      rune@social.sound-city.dk
      wrote sidst redigeret af
      #2

      There is also a --no-version flag which prints the version.

      reynir@social.data.coopR 1 Reply Last reply
      0
      • rune@social.sound-city.dkR rune@social.sound-city.dk

        There is also a --no-version flag which prints the version.

        reynir@social.data.coopR This user is from outside of this forum
        reynir@social.data.coopR This user is from outside of this forum
        reynir@social.data.coop
        wrote sidst redigeret af
        #3

        @rune is it a general pattern that every option has a --no- alternative?

        rune@social.sound-city.dkR 1 Reply Last reply
        0
        • reynir@social.data.coopR reynir@social.data.coop

          @rune is it a general pattern that every option has a --no- alternative?

          rune@social.sound-city.dkR This user is from outside of this forum
          rune@social.sound-city.dkR This user is from outside of this forum
          rune@social.sound-city.dk
          wrote sidst redigeret af
          #4

          @reynir There is one other that actually makes sense to negate

            --[no-]web.systemd-socket  Use systemd socket activation listeners instead of port listeners (Linux only).
          

          but it's just the kind of thing that throws me off so hard. They either couldn't figure out how to make this work on only one argument or they just don't care and in either case I am worried what else they struggled with

          reynir@social.data.coopR 1 Reply Last reply
          0
          • rune@social.sound-city.dkR rune@social.sound-city.dk

            @reynir There is one other that actually makes sense to negate

              --[no-]web.systemd-socket  Use systemd socket activation listeners instead of port listeners (Linux only).
            

            but it's just the kind of thing that throws me off so hard. They either couldn't figure out how to make this work on only one argument or they just don't care and in either case I am worried what else they struggled with

            reynir@social.data.coopR This user is from outside of this forum
            reynir@social.data.coopR This user is from outside of this forum
            reynir@social.data.coop
            wrote sidst redigeret af
            #5

            @rune Looks like they use this library for argument parsing (which the author seems to have more or less deprecated / put into maintenance mode) https://github.com/alecthomas/kingpin#boolean-values

            1 Reply Last reply
            0
            Svar
            • Svar som emne
            Login for at svare
            • Ældste til nyeste
            • Nyeste til ældste
            • Most Votes


            • Log ind

            • Login or register to search.
            Powered by NodeBB Contributors
            Graciously hosted by data.coop
            • First post
              Last post
            0
            • Hjem
            • Seneste
            • Etiketter
            • Populære
            • Verden
            • Bruger
            • Grupper