Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group-by not working #304

Open
ghost opened this issue Feb 3, 2024 · 1 comment
Open

group-by not working #304

ghost opened this issue Feb 3, 2024 · 1 comment
Labels
bug Something isn't working windows Concerns only Windows OS

Comments

@ghost
Copy link

ghost commented Feb 3, 2024

Using PowerShell 5.1.

# profiles.toml

[default]
repository = 'repo'

[default.env]
RESTIC_PASSWORD = 'password'

[default.forget]
group-by = ''
keep-last = 2
D:\***> resticprofile.exe forget
2024/02/02 13:28:28 using configuration file: profiles.toml
2024/02/02 13:28:28 profile 'default': starting 'forget'
invalid argument "\"\"" for "-g, --group-by" flag: unknown grouping option: "\"\""
2024/02/02 13:28:28 forget on profile 'default': exit status 1

Using group-by = "" in TOML file produces the same output:

D:\***> resticprofile.exe forget
2024/02/02 13:33:44 using configuration file: profiles.toml
2024/02/02 13:33:44 profile 'default': starting 'forget'
invalid argument "\"\"" for "-g, --group-by" flag: unknown grouping option: "\"\""
2024/02/02 13:33:44 forget on profile 'default': exit status 1
resticprofile version
resticprofile version 0.24.0 commit bcfaaa7cacfa7f88a94d5dc62ca69b2d89205d89
@creativeprojects
Copy link
Owner

Yes it looks like empty string is not recognised by the shell escaper 🤦🏻

@creativeprojects creativeprojects added the bug Something isn't working label Feb 5, 2024
@creativeprojects creativeprojects added the windows Concerns only Windows OS label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Concerns only Windows OS
Projects
None yet
Development

No branches or pull requests

1 participant