|
12 | 12 | description="Print system information.",
|
13 | 13 | )
|
14 | 14 |
|
15 |
| -parser.add_option("-a", action="store_true", help="print all") |
16 |
| -parser.add_option("-m", action="store_true", help="machine hardware type") |
17 |
| -parser.add_option("-n", action="store_true", help="hostname") |
18 |
| -parser.add_option("-r", action="store_true", help="kernel release") |
19 |
| -parser.add_option("-s", action="store_true", help="kernel name (default)") |
20 |
| -parser.add_option("-v", action="store_true", help="kernel version") |
21 |
| -parser.add_option("-p", action="store_true", help="processor type") |
22 |
| -parser.add_option("-i", action="store_true", help="hardware platform (unimplemented)") |
23 |
| -parser.add_option("-o", action="store_true", help="operating system (unimplemented)") |
| 15 | +parser.add_option( |
| 16 | + "-a", |
| 17 | + "--all", |
| 18 | + action="store_true", |
| 19 | + help="print all", |
| 20 | +) |
| 21 | +parser.add_option( |
| 22 | + "-s", |
| 23 | + "--kernel-name", |
| 24 | + action="store_true", |
| 25 | + help="print kernel name (default)", |
| 26 | +) |
| 27 | +parser.add_option( |
| 28 | + "-n", |
| 29 | + "--nodename", |
| 30 | + action="store_true", |
| 31 | + help="print hostname", |
| 32 | +) |
| 33 | +parser.add_option( |
| 34 | + "-r", |
| 35 | + "--kernel-release", |
| 36 | + action="store_true", |
| 37 | + help="print kernel release", |
| 38 | +) |
| 39 | +parser.add_option( |
| 40 | + "-v", |
| 41 | + "--kernel-version", |
| 42 | + action="store_true", |
| 43 | + help="print kernel version", |
| 44 | +) |
| 45 | +parser.add_option( |
| 46 | + "-m", |
| 47 | + "--machine", |
| 48 | + action="store_true", |
| 49 | + help="print machine hardware type", |
| 50 | +) |
| 51 | +parser.add_option( |
| 52 | + "-p", |
| 53 | + "--processor", |
| 54 | + action="store_true", |
| 55 | + help="print processor type (unimplemented)", |
| 56 | +) |
| 57 | +parser.add_option( |
| 58 | + "-i", |
| 59 | + "--hardware-platform", |
| 60 | + action="store_true", |
| 61 | + help="print hardware platform (unimplemented)", |
| 62 | +) |
| 63 | +parser.add_option( |
| 64 | + "-o", |
| 65 | + "--operating-system", |
| 66 | + action="store_true", |
| 67 | + help="print operating system (unimplemented)", |
| 68 | +) |
24 | 69 |
|
25 | 70 |
|
26 | 71 | @lib.command(parser)
|
|
0 commit comments