1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

samples: enable flag parsing

this will allow people to use glog options (like -v=3) to increase
verbosity of the log output
This commit is contained in:
Kunal Powar 2014-04-05 01:43:16 +05:30
parent 10992981e3
commit 779096e668
22 changed files with 91 additions and 10 deletions

View file

@ -3,6 +3,7 @@
package main
import (
"flag"
"os"
"os/signal"
"time"
@ -13,6 +14,8 @@ import (
)
func main() {
flag.Parse()
if err := embd.InitI2C(); err != nil {
panic(err)
}