Aggiunto help se non mi chiedete di fare niente.
Leonardo [2010-04-17 13:54]
Aggiunto help se non mi chiedete di fare niente.
diff --git a/phcstats.py b/phcstats.py
index 802df33..75ce2e8 100755
--- a/phcstats.py
+++ b/phcstats.py
@@ -130,6 +130,11 @@ if __name__ == "__main__":
(options, args) = parser.parse_args()
group = os.path.expanduser(options.group_file)
+
+ # Se non mi chiedi di fare niente non hai capito
+ # come funziono, molto probabilmente.
+ if not (options.check or options.stats):
+ parser.print_help()
if options.check:
for client in LoadClients():