summaryrefslogtreecommitdiff
path: root/chirpw
diff options
context:
space:
mode:
authorAna C. Custura <ana@netstat.org.uk>2018-08-15 17:32:23 +0100
committerAna C. Custura <ana@netstat.org.uk>2018-08-15 17:32:23 +0100
commit419fb7a940ff1ae9db0cd0d4826c34320b01ed4f (patch)
treec19ff167a68dbf5e9e05654845351d0c1036bb33 /chirpw
parent3adef9d89f20324fbbcf3287cd22fb8f3855ebb9 (diff)
New upstream version 20180815upstream/20180815
Diffstat (limited to 'chirpw')
-rwxr-xr-xchirpw6
1 files changed, 6 insertions, 0 deletions
diff --git a/chirpw b/chirpw
index 6ea9ba0..23572c5 100755
--- a/chirpw
+++ b/chirpw
@@ -112,6 +112,8 @@ else:
parser = argparse.ArgumentParser()
parser.add_argument("files", metavar="file", nargs='*', help="File to open")
+parser.add_argument("--module", metavar="module",
+ help="Load module on startup")
logger.add_version_argument(parser)
parser.add_argument("--profile", action="store_true",
help="Enable profiling")
@@ -125,6 +127,10 @@ if True:
from chirp.ui import mainapp
a = mainapp.ChirpMain()
+# Be sure to load module before opening files
+if args.module:
+ a.load_module(args.module)
+
for i in args.files:
LOG.info("Opening %s", i)
a.do_open(i)