resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

`group-by` not working

Open ghost opened this issue 1 year ago • 1 comments

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

ghost avatar Feb 03 '24 04:02 ghost

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

creativeprojects avatar Feb 05 '24 22:02 creativeprojects