Skip to content

Commit

Permalink
Add documentation about how to access added flags
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 24, 2016
1 parent e307ab4 commit a7690d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qnd/flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
def add_flag(name, *args, **kwargs):
"""Add a flag.
Added flags can be accessed by `FLAGS` global variable.
(e.g. `FLAGS.my_flag_name`)
Args:
name: Flag name. Real flag name will be `"--{}".format(name)`.
*args, **kwargs: The rest arguments are the same as
Expand Down

0 comments on commit a7690d7

Please sign in to comment.