Skip to content

Commit 8bcdb9f

Browse files
authored
Merge pull request #219 from hugoh/fix-handling-of-no-args-on
fix: handling of no args on command line
2 parents 32512ec + 2eaf0e9 commit 8bcdb9f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

internal/cmd_builder.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ func cmdFlags(configFile *string, configSource altsrc.Sourcer) []cli.Flag { //no
139139
&cli.StringFlag{
140140
Name: ConfigModel,
141141
Sources: cli.NewValueSourceChain(toml.TOML(ConfigModel, configSource)),
142-
Required: true,
143142
Usage: fmt.Sprintf("gateway model: options: %s, %s", ARCADYAN, NOK5G21),
144143
Destination: &appConfig.Model,
145144
},

internal/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func getGateway(cfg *Config) (tmhi.Gateway, error) {
2828
case NOK5G21:
2929
return tmhi.NewNokiaGateway(gwConfig), nil
3030
default:
31-
pterm.Error.Println("unsupported gateway:", cfg.Model)
31+
pterm.Error.Printf("unsupported gateway: \"%s\"\n", cfg.Model)
3232

3333
return nil, fmt.Errorf("%w: %s", errUnknownGateway, cfg.Model)
3434
}

0 commit comments

Comments
 (0)