Skip to content

Commit 69b1542

Browse files
zikalinoZim Kalinowski
andauthored
fix: small inconsistencies in help texts (#336)
Co-authored-by: Zim Kalinowski <zim.kalinowski@espressif.com>
1 parent c03bbbb commit 69b1542

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/commands/server/firewall/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ To edit the default rule of the firewall, set only ` + "`" + `--direction` + "`"
5858

5959
flagSet := &pflag.FlagSet{}
6060

61-
flagSet.StringVar(&s.direction, "direction", "", "Rule direction. Available: in / out")
62-
flagSet.StringVar(&s.action, "action", "", "Rule action. Available: accept / drop")
61+
flagSet.StringVar(&s.direction, "direction", "", "Rule direction. Available: in, out")
62+
flagSet.StringVar(&s.action, "action", "", "Rule action. Available: accept, drop")
6363
flagSet.StringVar(&s.family, "family", "", "IP family. Available: IPv4, IPv6")
6464
flagSet.IntVar(&s.position, "position", 0, "Position in relation to other rules. Available: 1-1000")
6565
flagSet.StringVar(&s.protocol, "protocol", "", "Protocol. Available: tcp, udp, icmp")

internal/commands/storage/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func applyCreateFlags(fs *pflag.FlagSet, dst, def *createParams) {
8383
fs.StringVar(&dst.Tier, "tier", def.Tier, "Storage tier.")
8484
config.AddToggleFlag(fs, &dst.encrypted, "encrypt", false, "Encrypt the storage.")
8585
fs.StringVar(&dst.backupTime, "backup-time", def.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
86-
fs.StringVar(&dst.BackupRule.Interval, "backup-interval", def.BackupRule.Interval, "The interval of the backup.\nAvailable: daily,mon,tue,wed,thu,fri,sat,sun")
86+
fs.StringVar(&dst.BackupRule.Interval, "backup-interval", def.BackupRule.Interval, "The interval of the backup.\nAvailable: daily, mon, tue, wed, thu, fri, sat, sun")
8787
fs.IntVar(&dst.BackupRule.Retention, "backup-retention", def.BackupRule.Retention, "How long to store the backups in days. The accepted range is 1-1095")
8888
}
8989

internal/commands/storage/modify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (s *modifyCommand) InitCommand() {
6565
flagSet.StringVar(&s.params.Title, "title", defaultModifyParams.Title, "A short, informational description.")
6666
flagSet.IntVar(&s.params.Size, "size", defaultModifyParams.Size, "Size of the storage (GiB).")
6767
flagSet.StringVar(&s.params.backupTime, "backup-time", s.params.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
68-
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily,mon,tue,wed,thu,fri,sat,sun")
68+
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily, mon, tue, wed, thu, fri, sat, sun")
6969
flagSet.IntVar(&s.params.backupRetention, "backup-retention", 0, "How long to store the backups in days. The accepted range is 1-1095.")
7070
config.AddEnableOrDisableFlag(flagSet, &s.autoresizePartitionFilesystem, false, "filesystem-autoresize", "automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incure costs.")
7171

0 commit comments

Comments
 (0)