Skip to content

Commit

Permalink
rename --silent to --urls-only
Browse files Browse the repository at this point in the history
  • Loading branch information
zrquan committed Sep 19, 2024
1 parent 0233cb6 commit 73ba63f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Support non-default network interface
- Remove unused dependencies (urllib3, cryptography, cffi, idna, chardet)
- Load targets from a Nmap XML report
- Added --silent option to output only the full URL
- Added --urls-only option to output only the full URL

## [0.4.3] - October 2nd, 2022
- Automatically detect the URI scheme (`http` or `https`) if no scheme is provided
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Options:
Show redirects history
--no-color No colored output
-q, --quiet-mode Quiet mode
--silent Silent mode
--urls-only Output only the full URLs
Output Settings:
-o PATH, --output=PATH
Expand Down Expand Up @@ -344,7 +344,7 @@ crawl = False
[view]
full-url = False
quiet-mode = False
silent = Faise
urls-only = Faise
color = True
show-redirects-history = False

Expand Down
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ crawl = False
[view]
full-url = False
quiet-mode = False
silent = False
urls-only = False
color = True
show-redirects-history = False

Expand Down
2 changes: 1 addition & 1 deletion lib/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"redirects_history": False,
"color": True,
"quiet": False,
"silent": False,
"urls_only": False,
"output_file": None,
"output_format": None,
"log_file": None,
Expand Down
2 changes: 1 addition & 1 deletion lib/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def parse_config(opt):
opt.full_url = opt.full_url or config.safe_getboolean("view", "full-url")
opt.color = opt.color or config.safe_getboolean("view", "color", True)
opt.quiet = opt.quiet or config.safe_getboolean("view", "quiet-mode")
opt.silent = opt.silent or config.safe_getboolean("view", "silent")
opt.urls_only = opt.urls_only or config.safe_getboolean("view", "urls-only")
opt.redirects_history = opt.redirects_history or config.safe_getboolean(
"view", "show-redirects-history"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/parse/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def parse_arguments():
"-q", "--quiet-mode", action="store_true", dest="quiet", help="Quiet mode"
)
view.add_option(
"--silent", action="store_true", dest="silent", help="Silent mode"
"--urls-only", action="store_true", dest="urls_only", help="Output only the full URLs"
)

# Output Settings
Expand Down
4 changes: 2 additions & 2 deletions lib/view/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def log_file(*args):
pass


class SilentCLI(QuietCLI):
class URLOnlyCLI(QuietCLI):
def status_report(self, response, _):
self.new_line(response.url)


interface = SilentCLI() if options["silent"] else QuietCLI() if options["quiet"] else CLI()
interface = URLOnlyCLI() if options["urls_only"] else QuietCLI() if options["quiet"] else CLI()

0 comments on commit 73ba63f

Please sign in to comment.