OFDL 1.10 does not process command line arguments #150
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This powershell script ran fine through all versions of 1.9.x:
After updating to 1.10, the script always dumps to the menu. --nonInteractive dumps to the menu. Googling the command line args refers to a
-o "option=value"syntax which also doesn't work. (-o "NonInteractiveMode=true"). Other simple command line arguments like -? or --help also just runs to the menu.This worked 10 hours ago. Even swapping the exe back to 1.9.20 works again.
🤷♂️
Looking at the source code from 1.9.20, the reason that the "download" positional argument used to work was due to a bug in the logic that checked for the non-interactive flag (
--non-interactive). The code in question would force the program to enter non-interactive mode if any CLI argument was passed to the program since the condition was always true.After testing, the
--non-interactiveCLI argument works as expected in both CMD ("OF DL.exe" --non-interactive) and powershell (& '.\OF DL.exe' --non-interactive). Your issue is likely related to #149