OwO-Network / DeepLX

Powerful Free DeepL API, No Token Required
https://ssa.sx/deeplx
MIT License
6.64k stars 532 forks source link

flag provided but not defined: -logging-level #55

Closed threadflow closed 1 year ago

threadflow commented 1 year ago

From version v0.7.8 to the newest v0.8.0, deeplx running with --logging-level info will get a error message: flag provided but not defined: -logging-level.

I had thought that cause the brew issue.

missuo commented 1 year ago

There is indeed a problem with homebrew, I will fix it tonight. Sorry, I was too sleepy in the morning, I got off the plane and arrived home without sleeping before releasing v0.8.0.

linusxiong commented 1 year ago

change plist file to

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>homebrew.mxcl.deeplx</string>
    <key>ProgramArguments</key>
    <array>
        <string>/opt/homebrew/Cellar/deeplx/0.8.0/bin/deeplx</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>WorkingDirectory</key>
    <string>/opt/homebrew/var/run/deeplx</string>
    <key>StandardOutPath</key>
    <string>/opt/homebrew/var/log/deeplx/deeplx.log</string>
    <key>StandardErrorPath</key>
    <string>/opt/homebrew/var/log/deeplx/deeplx.log</string>
</dict>
</plist>

can fix this problem

missuo commented 1 year ago

change plist file to


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>Label</key>

    <string>homebrew.mxcl.deeplx</string>

    <key>ProgramArguments</key>

    <array>

        <string>/opt/homebrew/Cellar/deeplx/0.8.0/bin/deeplx</string>

    </array>

    <key>RunAtLoad</key>

    <true/>

    <key>KeepAlive</key>

    <dict>

        <key>SuccessfulExit</key>

        <false/>

    </dict>

    <key>WorkingDirectory</key>

    <string>/opt/homebrew/var/run/deeplx</string>

    <key>StandardOutPath</key>

    <string>/opt/homebrew/var/log/deeplx/deeplx.log</string>

    <key>StandardErrorPath</key>

    <string>/opt/homebrew/var/log/deeplx/deeplx.log</string>

</dict>

</plist>

can fix this problem

Thanks.

missuo commented 1 year ago

Fixed. @threadflow