Skip to content

Commit 52c8b42

Browse files
committed
adding an option to setup the env
1 parent ffc3f56 commit 52c8b42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/apkToJava

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ end
1616
def wrong_usage
1717
print_info "Wrong Usage! Right usage is -"
1818
print_success "apkToJava path/to/apk/file"
19+
print_info "To install required tools -"
20+
print_success "apkToJava setup"
1921
end
2022

2123
def valid_usage?
@@ -35,7 +37,9 @@ def valid_usage?
3537
end
3638

3739
def execute
38-
if valid_usage?
40+
if ARGV[0] == 'setup'
41+
initialize_setup
42+
elsif valid_usage?
3943
initialize_setup if !env_setup?
4044
view_as_java_code ARGV[0]
4145
end

0 commit comments

Comments
 (0)