Zandronum Chat @
Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003282Doomseeker[All Projects] Bugpublic2017-10-03 05:422017-10-07 08:56
Assigned ToZalewa 
Platformx86_64 (really cross-platform)OSDebian GNU/LinuxOS Versionbuster/sid
Product Version1.1 
Target VersionFixed in Version 
Summary0003282: Omitting file from --version-json command line parameter doesn't print to standard output
DescriptionThe --version-json command line parameter requires a file. It should be changed to optional, and output to stdout at least when the file is omitted after the parameter.
Steps To Reproduce
$ doomseeker --version-json                             
[05:35:51] No file specified!
Additional Information
doomseeker --version-json /dev/stdout
works. This is not ideal, and doesn't work very well with shell redirection to cat/less/more etc.

This should be shell-agnostic to any POSIX-like shell, but my choice of shell here was mksh:

$ echo $SHELL
Attached Files

- Relationships
related to 0003247assignedWubTheCaptain Doomseeker's manual page (mdoc/nroff) is missing or incomplete 
child of 0003279acknowledged List of Debian issues (misc/non-policy) 

-  Notes
User avatar (0018419)
WubTheCaptain (developer)
2017-10-03 06:00

By the way, the --help command describes the file to be optional (when it really is not) with brackets:

--version-json [file]
    Prints version info on Doomseeker and all
    plugins in JSON format to specified file,
    then closes the program.
User avatar (0018433)
Zalewa (developer)
2017-10-04 16:19

I agree. The reason I omitted that originally was because this cmdline arg is used for preparing the update packages for auto-updater. On Windows, programs compiled with /SUBSYSTEM:WINDOWS won't print anything to stdout/stderr. Hence it's always necessary to pass the argument.

It won't do harm to also support the argumentless version.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-10-03 05:42 WubTheCaptain New Issue
2017-10-03 05:43 WubTheCaptain Relationship added child of 0003279
2017-10-03 05:44 WubTheCaptain Priority normal => low
2017-10-03 05:47 WubTheCaptain Description Updated View Revisions
2017-10-03 06:00 WubTheCaptain Note Added: 0018419
2017-10-04 16:19 Zalewa Note Added: 0018433
2017-10-04 16:19 Zalewa Assigned To => Zalewa
2017-10-04 16:19 Zalewa Status new => acknowledged
2017-10-07 08:56 WubTheCaptain Relationship added related to 0003247

Questions or other issues? Contact Us.


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker