Skip to content

Commit 4d45e04

Browse files
committed
fix[close #108]: Check arguments in vso android info
1 parent a78e5c5 commit 4d45e04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/waydroid.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ func wayInfo(cmd *cobra.Command, args []string) error {
205205
os.Exit(1)
206206
}
207207

208+
if len(args) < 1 {
209+
cmdr.Error.Println(vso.Trans("waydroid.error.noArguments"))
210+
os.Exit(1)
211+
}
212+
208213
search := strings.Join(args, " ")
209214
matches, err := core.SearchIndex(search, vso.Trans("waydroid.downloadIndex"))
210215
if err != nil {

0 commit comments

Comments
 (0)