From 9f1c3dba7966ece85f7899567fcc66737bde6088 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 16 May 2011 12:44:34 -0400 Subject: bcfg2-info help returns help without starting a server instance --- src/sbin/bcfg2-info | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 161fee441..fc36b2602 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -487,7 +487,10 @@ if __name__ == '__main__': }) setup = Bcfg2.Options.OptionParser(optinfo) setup.parse(sys.argv[1:]) - if setup['profile'] and have_profile: + if setup['args'][0] == 'help': + print(USAGE) + sys.exit(0) + elif setup['profile'] and have_profile: prof = profile.Profile() loop = prof.runcall(infoCore, setup['repo'], setup['plugins'], setup['password'], setup['encoding'], -- cgit v1.2.3-1-g7c22