over.app.Main now uses a features dict instead of individual flags, closes #5

This commit is contained in:
Martinez 2016-05-17 09:52:26 +02:00
parent 123b04c2b7
commit 720dfa7b09
2 changed files with 18 additions and 7 deletions

View file

@ -28,7 +28,7 @@ def tri_callback(a, b, c):
return "%s, %s and %s" %(a, b, c)
if __name__ == "__main__":
main = over.app.Main("Over App Test", version.str, "LICENSE", use_cfg_file=False)
main = over.app.Main("Over App Test", version.str, "LICENSE")
# name, description, callback, default=Option_sources.none, count=0, overwrite=True, abbr=None, in_cfg_file=True, show_in_help=True
main.add_option("armed", "Description.", bool, True, abbr="A")
main.add_option("verbose", "Description.", bool, True, abbr="v")
@ -42,5 +42,4 @@ if __name__ == "__main__":
if option.name not in ["help", "-help"]:
main.print("option <g>%s<.> = %s" %(option.name, option.value))
main.print(str(main.cfg.verbosee))
main.print("<m>targets<.>: %s" %(main.targets))