diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2-info | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index ef5db6f6a..533a8acef 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -278,4 +278,8 @@ if __name__ == '__main__': loop = infoCore(setup['repo'], setup['structures'], setup['generators'], setup['password'], setup['svn']) loop.plugins['Metadata'].load_probedata() - loop.do_loop() + if len(sys.argv) > 1: + loop.onecmd(" ".join(sys.argv[1:])) + raise SystemExit(0) + else: + loop.do_loop() |