Skip to content

Commit 8ec7630

Browse files
committed
Get iOS path from calling directory
1 parent 2e60704 commit 8ec7630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oscli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class InstallCommand < Clamp::Command
1010
option [ "-t", "--type"], "TYPE", "project type (ios, android)"
1111
option ["--target"], "TARGETNAME", "name of the App target to use. Defaults to the entrypoint name"
12-
option ["--path"], "PATH", "path to the project directory"
1312
option ["--entrypoint"], "ENTRYPOINT", "Name of the target XCProject (ios) or appclassfile (android)"
1413
option ["--lang"], "LANG", "programming language to use for ios (objc, swift) or android (java, kotlin)"
1514
option ["--appid"], "[APPID]", "OneSignal App ID"
@@ -46,6 +45,7 @@ def execute
4645
if !target
4746
target = entrypoint
4847
end
48+
path = Dir.pwd
4949
ios_proj = OSProject::IOS.new(path, target, language, appid)
5050
xcodeproj_path = path + '/' + entrypoint + '.xcodeproj'
5151
ios_proj.install_onesignal!(xcodeproj_path)

0 commit comments

Comments
 (0)