Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22532

Agent 2 help option shows version option detached from its shorthand

XMLWordPrintable

    • Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
    • 5

      running ./sbin/zabbix_agent2 -h
      shows many arguments options paired together with shorthand option:
      e.g.:

        -h	Display this help message (shorthand)
        -help
          	Display this help message
      

      or

        -t string
          	Test specified item and exit (shorthand)
        -test string
          	Test specified item and exit
      

      but version option is not paired together with its shorthand:

        -R string
          	Perform administrative functions (send 'help' for available commands) (1s timeout)
        -V	Print program version and exit (shorthand)
        -c string
          	Path to the configuration file (shorthand) (default "/home/zabbix/zabbix/etc/zabbix_agent2.conf")
        -config string
          	Path to the configuration file (default "/home/zabbix/zabbix/etc/zabbix_agent2.conf")
        -f	Run Zabbix agent in foreground (shorthand) (default true)
        -foreground
          	Run Zabbix agent in foreground (default true)
        -h	Display this help message (shorthand)
        -help
          	Display this help message
        -p	Print known items and exit (shorthand)
        -print
          	Print known items and exit
        -t string
          	Test specified item and exit (shorthand)
        -test string
          	Test specified item and exit
        -v	Enable verbose output for metric testing or printing (shorthand)
        -verbose
          	Enable verbose output for metric testing or printing
        -version
          	Print program version and exit
      

      Expected behaviour:

        -V	Print program version and exit (shorthand)
      
      

      and

        -version
          	Print program version and exit
      

      are printed together

        1. after.txt
          1 kB
          Mihails Prihodko
        2. before.txt
          1 kB
          Mihails Prihodko
        3. plugin-support-diff
          5 kB
          Rudolfs Zvejs

            rzvejs Rudolfs Zvejs (Inactive)
            arimdjonoks Artjoms Rimdjonoks
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: