爬虫系列6:爬虫编码实现 — 基于 goquery 包

polaris · 2019-06-08 17:09:29 · 5899 次点击

The following forms are permitted:

-flag
-flag=x
-flag x  // non-boolean flags only

One or two minus signs may be used; they are equivalent. The last form is not permitted for boolean flags because the meaning of the command

cmd -x *

where * is a Unix shell wildcard, will change if there is a file called 0, false, etc. You must use the -flag=false form to turn off a boolean flag.

#4
更多评论
./crawler -all false -site "www.zhipin.com"

這樣 -all 會變 true

正確的方式

./crawler -all=false -site "www.zhipin.com"
#1
polaris
社区,需要你我一同完善!

@maxli

#2