33# Browser Exploitation Framework (BeEF) - https://beefproject.com
44# See the file 'doc/COPYING' for copying permission
55#
6+ require 'optparse'
7+
68module BeEF
79 module Core
810 module Console
@@ -38,7 +40,7 @@ def self.parse
3840 @options [ :verbose ] = true
3941 end
4042
41- opts . on ( '-a' , '--ascii_art ' , 'Prints BeEF ascii art' ) do
43+ opts . on ( '-a' , '--ascii-art ' , 'Prints BeEF ascii art' ) do
4244 @options [ :ascii_art ] = true
4345 end
4446
@@ -54,14 +56,22 @@ def self.parse
5456 @options [ :ws_port ] = ws_port
5557 end
5658
57- opts . on ( '-ud ' , '--update_disabled ' , 'Skips update' ) do
59+ opts . on ( '-d ' , '--update-disabled ' , 'Skips update' ) do
5860 @options [ :update_disabled ] = true
5961 end
6062
61- opts . on ( '-ua ' , '--update_auto ' , 'Automatic update with no prompt' ) do
63+ opts . on ( '-u ' , '--update-auto ' , 'Automatic update with no prompt' ) do
6264 @options [ :update_auto ] = true
6365 end
6466
67+ opts . on ( '-h' , '--help' , 'Show this help' ) do
68+ puts opts
69+ exit 0
70+ end
71+
72+ # opts.on('-i', '--interactive', 'Starts with the Console Shell activated') do
73+ # @options[:interactive] = true
74+ # end
6575 end
6676
6777 optparse . parse!
0 commit comments