At least that's how it works for me.
Details
Details
Diff Detail
Diff Detail
- Repository
- rTCLOUD testcloud
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
roshi | |
tflink |
At least that's how it works for me.
seems to work
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | testcloud/cli.py (2 lines) |
Commit | Tree | Parents | Author | Summary | Date |
---|---|---|---|---|---|
7cf964e67965 | fc1f4e6e0239 | 98b1f77e5eeb | Kamil Páral | argparse: fix cmdline help (Show More…) | Aug 27 2015, 10:21 AM |
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 157 | def _destroy_image(args): | |||
---|---|---|---|---|---|
170 | 170 | | |||
171 | tc_image.destroy() | 171 | tc_image.destroy() | ||
172 | 172 | | |||
173 | 173 | | |||
174 | def get_argparser(): | 174 | def get_argparser(): | ||
175 | parser = argparse.ArgumentParser(description=description) | 175 | parser = argparse.ArgumentParser(description=description) | ||
176 | subparsers = parser.add_subparsers(title="Command Types", | 176 | subparsers = parser.add_subparsers(title="Command Types", | ||
177 | description="Types of commands available", | 177 | description="Types of commands available", | ||
178 | help="<command> help") | 178 | help="<command> --help") | ||
179 | 179 | | |||
180 | instarg = subparsers.add_parser("instance", help="help on instance options") | 180 | instarg = subparsers.add_parser("instance", help="help on instance options") | ||
181 | instarg.add_argument("-c", | 181 | instarg.add_argument("-c", | ||
182 | "--connection", | 182 | "--connection", | ||
183 | default="qemu:///system", | 183 | default="qemu:///system", | ||
184 | help="libvirt connection url to use") | 184 | help="libvirt connection url to use") | ||
185 | instarg_subp = instarg.add_subparsers(title="instance commands", | 185 | instarg_subp = instarg.add_subparsers(title="instance commands", | ||
186 | description="Commands available for instance operations", | 186 | description="Commands available for instance operations", | ||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |