Compact-Log-Format-Viewer icon indicating copy to clipboard operation
Compact-Log-Format-Viewer copied to clipboard

Use first process argument as log-file to open, if only one is supplied and does not start with a dash

Open juwens opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. i would like to achieve two things:

  • A: open logfile like this: CompactLogViewer.exe C:\Users\foobar\Downloads\my-log.clef
  • B: under windows associate the file extension "clef" with Compact Log Viewer, so that when i doubleclick a file with ".clef"-ending it will be shown in Compact Log Viewer

when i currently do A or B, i just get the regular start-screen with "select or drop a log file"

hint: Setting the association is something i see as the duty of the user. It's not necessary for the application to dive into this rabbit-hole.

Describe the solution you'd like

  • the application interpretes the first argument as a path to a clef file
  • this log-file will then be opened

Describe alternatives you've considered

  • do it the way it is now

Additional context

  • if i find the time, i'll provide a MR, it should be relatively easy

juwens avatar Feb 07 '23 19:02 juwens

+1 for this enhancement. Much easier to open multiple log file using the command line than finding the log file and then dragging and dropping it.

mgmiles avatar Mar 05 '24 11:03 mgmiles

+1 for this enhancement. Much easier to open multiple log file usign the command line than finding the log file and then dragging and dropping it.

mgmiles avatar Mar 05 '24 11:03 mgmiles