Skip to content

Commit

Permalink
Show error if invalid command is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgissi committed Jun 21, 2020
1 parent b4bd0b1 commit fc59972
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fwtablectl/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func firmware(args []string) {
usage()
}
firmwareRemove(args[1:])
default:
fmt.Println("Invalid firmware command:", args[0])
usage()

}
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/fwtablectl/part.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ func part(args []string) {
usage()
}
partRemove(args[1:])
default:
fmt.Println("Invalid parts command:", args[0])
usage()
}
}

Expand Down

0 comments on commit fc59972

Please sign in to comment.