Commits

Anonymous committed 45c35ac

Add comment in -h or --help

Comments (0)

Files changed (1)

         except:
             if self.bz2_name:
                 command = 'rm %s' % self.bz2_name
-                print command
                 os.system(command)
         finally:
             if suspended:
             vm.start_backup()
 
 if __name__ == '__main__':
-    main(sys.argv)
+    if '-h' in sys.argv or '--help' in sys.argv:
+        print '\nuse: python kvm-backup.py [name_vm,]\n'
+    else:
+        main(sys.argv)