mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
manual: script cmd line params updated
This commit is contained in:
parent
4b0c7d42c3
commit
fb280584a9
@ -5,7 +5,7 @@ pdf: clean
|
|||||||
open btstack_gettingstarted.pdf
|
open btstack_gettingstarted.pdf
|
||||||
|
|
||||||
example:
|
example:
|
||||||
./update_listings.py -s 1
|
./update_listings.py -s
|
||||||
subl examples.tex
|
subl examples.tex
|
||||||
pdflatex examples.tex
|
pdflatex examples.tex
|
||||||
open examples.pdf
|
open examples.pdf
|
||||||
|
@ -266,16 +266,16 @@ def main(argv):
|
|||||||
standalone_flag = 0
|
standalone_flag = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(argv,"hs:o:",["sflag=","ofile="])
|
opts, args = getopt.getopt(argv,"hso:",["standalone","ofile="])
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
print 'test.py [-s <standaloneflag>] [-o <outputfile>]'
|
print 'test.py [-s] [-o <outputfile>]'
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
for opt, arg in opts:
|
for opt, arg in opts:
|
||||||
if opt == '-h':
|
if opt == '-h':
|
||||||
print 'update_listings.py [-s <standalone_flag>] [-o <outputfile>]'
|
print 'update_listings.py [-s] [-o <outputfile>]'
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif opt in ("-s", "--sflag"):
|
elif opt in ("-s", "--standalone"):
|
||||||
standalone_flag = arg
|
standalone_flag = 1
|
||||||
elif opt in ("-o", "--ofile"):
|
elif opt in ("-o", "--ofile"):
|
||||||
outputfile = arg
|
outputfile = arg
|
||||||
print 'Standalone flag is ', standalone_flag
|
print 'Standalone flag is ', standalone_flag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user