# HG changeset patch # User kgrant@localhost.localdomain # Node ID b15def26e09aa8deebe0452733e498b53d072aec # Parent 090e44133d40247bc3ccbb565b644d02fdac6829 Add per command help / make help match new man pages diff -r 090e44133d40 -r b15def26e09a tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Mon Nov 14 17:13:38 2005 +++ b/tools/python/xen/xm/main.py Tue Nov 15 19:56:14 2005 @@ -40,26 +40,85 @@ import console +# Strings for shorthelp +console_help = "console Attach to domain DomId's console." +create_help = """create [-c] + [Name=Value].. Create a domain based on Config File""" +destroy_help = "destroy Terminate a domain immediately" +help_help = "help Display this message" +list_help = "list [--long] [DomId, ...] List information about domains" +mem_max_help = "mem-max Set maximum memory reservation for a domain" +mem_set_help = "mem-set Adjust the current memory usage for a domain" +migrate_help = "migrate Migrate a domain to another machine" +pause_help = "pause Pause execution of a domain" +reboot_help = "reboot [-w][-a] Reboot a domain" +restore_help = "restore Create a domain from a saved state file" +save_help = "save Save domain state (and config) to file" +shutdown_help ="shutdown [-w][-a][-R|-H] Shutdown a domain" +top_help = "top Monitor system and domains in real-time" +unpause_help = "unpause Unpause a paused domain" + +help_spacer = """ + """ + +# Strings for longhelp +sysrq_help = "sysrq Send a sysrq to a domain" +domid_help = "domid Converts a domain name to a domain id" +domname_help = "domname Convert a domain id to a domain name" +set_vcpus_help = """set-vcpus Enable the specified number of VCPUs in a + domain""" +vcpu_list_help = "vcpu-list List the VCPUs for a domain (or all domains)" +vcpu_pin_help = "vcpu-pin Set which cpus a VCPU can use" +dmesg_help = "dmesg [--clear] Read or clear Xen's message buffer" +info_help = "info Get information about the xen host" +log_help = "log Print the xend log" +sched_bvt_help = """sched-bvt Set Borrowed Virtual Time scheduler + parameters""" +sched_bvt_ctxallow_help = """sched-bvt-ctxallow Set the BVT scheduler context switch + allowance""" +sched_sedf_help = "sched-sedf Set simple EDF parameters" +block_attach_help = """block-attach + [BackDomId] Create a new virtual block device""" +block_detach_help = """block-detach Destroy a domain's virtual block device, + where may either be the device ID + or the device name as mounted in the guest""" + +block_list_help = "block-list List virtual block devices for a domain" +network_attach_help = """network-attach [script=