summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util/leap_argparse.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-06-18 13:58:27 -0300
committerTomás Touceda <chiiph@leap.se>2014-06-18 13:58:27 -0300
commit4ff7ef29b06b6609c3fbb75ef6a17f500b106025 (patch)
tree084a85444463a166d4047242ac428c3e21819a6e /src/leap/bitmask/util/leap_argparse.py
parent42ca9123baee68c699971dda80145c7d910a8258 (diff)
parentadf42939117ec0a303fd2e50881e3f5dd38ceb78 (diff)
Merge remote-tracking branch 'refs/remotes/ivan/feature/more-app-cleanup' into develop
Diffstat (limited to 'src/leap/bitmask/util/leap_argparse.py')
-rw-r--r--src/leap/bitmask/util/leap_argparse.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py
index 84af4e8d..0717aea5 100644
--- a/src/leap/bitmask/util/leap_argparse.py
+++ b/src/leap/bitmask/util/leap_argparse.py
@@ -123,7 +123,13 @@ def build_parser():
return parser
-def init_leapc_args():
+def get_options():
+ """
+ Get the command line options used when the app was started.
+
+ :return: the command options
+ :rtype: argparse.Namespace
+ """
parser = build_parser()
opts, unknown = parser.parse_known_args()
- return parser, opts
+ return opts