Rev 4340 | Rev 4342 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4340 | Rev 4341 | ||
---|---|---|---|
Line 255... | Line 255... | ||
255 | if ((len(sys.argv) >= 3) and (sys.argv[2] == 'default')): |
255 | if ((len(sys.argv) >= 3) and (sys.argv[2] == 'default')): |
256 | if (check_choices(defaults, ask_names)): |
256 | if (check_choices(defaults, ask_names)): |
257 | create_output(OUTPUT, defaults, ask_names) |
257 | create_output(OUTPUT, defaults, ask_names) |
258 | return 0 |
258 | return 0 |
259 | 259 | ||
- | 260 | # Check mode: only check defaults |
|
- | 261 | if ((len(sys.argv) >= 3) and (sys.argv[2] == 'check')): |
|
- | 262 | if (check_choices(defaults, ask_names)): |
|
- | 263 | return 0 |
|
- | 264 | return 1 |
|
- | 265 | ||
260 | screen = xtui.screen_init() |
266 | screen = xtui.screen_init() |
261 | try: |
267 | try: |
262 | selname = None |
268 | selname = None |
263 | while True: |
269 | while True: |
264 | 270 | ||
Line 342... | Line 348... | ||
342 | 348 | ||
343 | create_output(OUTPUT, defaults, ask_names) |
349 | create_output(OUTPUT, defaults, ask_names) |
344 | return 0 |
350 | return 0 |
345 | 351 | ||
346 | if __name__ == '__main__': |
352 | if __name__ == '__main__': |
347 | exit(main()) |
353 | sys.exit(main()) |