|
18 | 18 | from lib.core.data import logger |
19 | 19 | from lib.core.defaults import defaults |
20 | 20 | from lib.core.settings import BASIC_HELP_ITEMS |
| 21 | +from lib.core.settings import DUMMY_URL |
21 | 22 | from lib.core.settings import IS_WIN |
22 | 23 | from lib.core.settings import MAX_HELP_OPTION_LENGTH |
23 | 24 |
|
@@ -664,6 +665,9 @@ def cmdLineParser(): |
664 | 665 | help="Simple wizard interface for beginner users") |
665 | 666 |
|
666 | 667 | # Hidden and/or experimental options |
| 668 | + parser.add_option("--dummy", dest="dummy", action="store_true", |
| 669 | + help=SUPPRESS_HELP) |
| 670 | + |
667 | 671 | parser.add_option("--pickled-options", dest="pickledOptions", help=SUPPRESS_HELP) |
668 | 672 |
|
669 | 673 | parser.add_option("--profile", dest="profile", action="store_true", |
@@ -760,6 +764,9 @@ def _(self, *args): |
760 | 764 | if sys.argv[i] == '-z': |
761 | 765 | expandMnemonics(sys.argv[i + 1], parser, args) |
762 | 766 |
|
| 767 | + if args.dummy: |
| 768 | + args.url = args.url or DUMMY_URL |
| 769 | + |
763 | 770 | if not any((args.direct, args.url, args.logFile, args.bulkFile, args.googleDork, args.configFile, \ |
764 | 771 | args.requestFile, args.updateAll, args.smokeTest, args.liveTest, args.wizard, args.dependencies, \ |
765 | 772 | args.purgeOutput, args.pickledOptions)): |
|
0 commit comments