akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
604 stars 62 forks source link

Argparse variables as Global variable #65

Closed iamshreeram closed 4 years ago

iamshreeram commented 4 years ago
  1. Is there a way to set the argparse variables as GLOBAL one. Currently, the scope of argparse variables are confined only to main().
  2. Is there a way to declare it in var ( )?
akamensky commented 4 years ago

It is pretty easy and has nothing to do with this library. On the other note global scope variables are evil and should only be used when absolutely necessary.

Closing as has nothing to do with this library.