Changeset 845:fbefcc917257
- Timestamp:
- 07/28/08 16:13:00
(5 months ago)
- Author:
- Phil <phil@secdev.org>
- Message:
Removed lsc() command
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r824 |
r845 |
|
| 721 | 721 | def make_tex_table(*args, **kargs): |
|---|
| 722 | 722 | __make_table(lambda l: "%s", lambda l: "& %s", "\\\\", seplinefunc=lambda a,x:"\\hline", *args, **kargs) |
|---|
| 723 | | |
|---|
| 724 | | |
|---|
| 725 | | ###################### |
|---|
| 726 | | ## Online doc stuff ## |
|---|
| 727 | | ###################### |
|---|
| 728 | | |
|---|
| 729 | | |
|---|
| 730 | | def lsc(cmd=None): |
|---|
| 731 | | """List user commands""" |
|---|
| 732 | | if cmd is None: |
|---|
| 733 | | for c in user_commands: |
|---|
| 734 | | doc = "No doc. available" |
|---|
| 735 | | if c.__doc__: |
|---|
| 736 | | doc = c.__doc__.split("\n")[0] |
|---|
| 737 | | |
|---|
| 738 | | print "%-16s : %s" % (c.__name__, doc) |
|---|
| 739 | | else: |
|---|
| 740 | | print cmd.__doc__ |
|---|
| 741 | | |
|---|
| 742 | | |
|---|
| 743 | | #XXX user_commands = [ sr, sr1, srp, srp1, srloop, srploop, sniff, p0f, arpcachepoison, send, sendp, traceroute, arping, ls, lsc, queso, nmap_fp, report_ports, dyndns_add, dyndns_del, is_promisc, promiscping ] |
|---|
| 744 | | |
|---|
| 745 | 723 | |
|---|
| 746 | 724 | |
|---|