speedata / xts

XML typesetting system
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

wrong error message in `xts --version`? #2

Closed pr-apes closed 1 year ago

pr-apes commented 1 year ago

@pgundlach,

I have just downloaded XTS for Windows and I get:

> xts --version
Usage: [parameter] command
-h, --help                   Show this help
-c, --config=NAME            Read the config file with the given NAME.
                             Default: 'publisher.cfg'
    --jobname=NAME           The name of the resulting PDF file (without
                             extension), default is 'publisher'
    --systemfonts            Use system fonts
    --verbose                Put more debugging information into the protocol
                             file
    --dummy                  Don't read a data file, use '<data />' as input
    --dumpoutput=FILENAME    Complete XML dump of generated PDF file

Commands
      list-fonts             List installed fonts
      clean                  Remove auxiliary and protocol files
      new                    Create simple layout and data file to start.
                             Provide optional directory.
      run                    Load layout and data files and create PDF
                             (default)
      version                Print version information
{"level":"error","ts":1681729417.645211,"caller":"xts/main.go:330","msg":"Unknown option version","stacktrace":"main.main\n\t/Users/patrick/work/software/bag/xts/xts/main.go:330\nruntime.main\n\t/opt/homebrew/Cellar/go/1.20.1/libexec/src/runtime/proc.go:250"}

I think the last line might be an error.

Just in case it helps. Many thanks for your help and your excellent work.

pgundlach commented 1 year ago

Actually this looks correct (runxts version instead of xts --version), but I should a) not log in JSON anymore at this point and for the most common commands/options (help and version) be more tolerant.

pr-apes commented 1 year ago

I see what was wrong on my side: sp --version and xts version.

This is why I thought that xts --version was right.

pgundlach commented 1 year ago

Oh, I see, I've mixed them up.... I think I stick with the command version (xts version) as it exits after printing the version information.

pgundlach commented 1 year ago

BTW: if you are brave enough to try XTS and have a priority wish... just let me know. Can't promise anything since this is a side project, but I'd be happy to get input.

pr-apes commented 1 year ago

This is a tempting offer.

I think about it and I let you know.