0

So I am trying to learn Python but I am a little bit overwhelmed with many new things.

One of these things that I am not able to understand is:

if __name__ == '__main__':
args = docopt(__doc__)
print(args)

The results of the print function is always:

{'initdb': False,
'run': False}

In some examples, the 'initdb' must be true in order to initialize the database and pretty much to run the app?

if __name__ == '__main__':
args = docopt(__doc__)
if not args['initdb']:
   ...

How can I make the initdb value equals true?

This is my first attempt to learn the subject, apologies if the question is not clear enough.

Ahmed Ali
  • 127
  • 2
  • 13

0 Answers0