add RepoType#String; adjust repo parsing logic.
This commit is contained in:
parent
a94ab050bf
commit
3733fa9cc2
@ -124,7 +124,9 @@ func GetAPIInfo(ctx *cli.Context, t repo.RepoType) (APIInfo, error) {
|
|||||||
|
|
||||||
repoFlags := flagsForRepo(t)
|
repoFlags := flagsForRepo(t)
|
||||||
for _, f := range repoFlags {
|
for _, f := range repoFlags {
|
||||||
if !ctx.IsSet(f) {
|
// cannot use ctx.IsSet because it ignores default values
|
||||||
|
f := ctx.String(f)
|
||||||
|
if f == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user