mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #966] [MERGED] Only log runtime argument if it starts with a dash "-" #1167
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1167
Loading…
Add table
Add a link
Reference in a new issue
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/966
Author: @michaelherger
Created: 2/7/2022
Status: ✅ Merged
Merged: 2/13/2022
Merged by: @roderickvd
Base:
dev← Head:fix-params-printout📝 Commits (1)
6f6d330Only log runtime argument if it starts with a dash "-"📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
src/main.rs(+1 -0)📄 Description
When there's a value that corresponds to an argument name used in the same command line, the logging of the arguments gets confused and logs the matching argument, but without the leading dash:
Here we're using the literal
cas the device name, and the-cargument. Thus thec /path/to/my/cacheis logged in addition to-c /path....After checking whether the key has a leading dash, this issue is gone:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.