fix misuse of argparse with nargs=1

This commit is contained in:
Jonathan Lipps
2013-03-08 10:27:35 -08:00
parent 8c5f8bbce3
commit e8578ccedf
2 changed files with 0 additions and 8 deletions

View File

@@ -9,7 +9,6 @@ var args = [
, defaultValue: null
, help: 'IOS: abs path to simulator-compiled .app file or the bundle_id of the desired target on device; Android: abs path to .apk file'
, example: "/abs/path/to/my.app"
, nargs: 1
}],
[['-V', '--verbose'], {
@@ -33,7 +32,6 @@ var args = [
, required: false
, example: "0.0.0.0"
, help: 'IP Address to listen on'
, nargs: 1
}],
[['-p', '--port'] , {
@@ -42,7 +40,6 @@ var args = [
, type: 'int'
, example: "4723"
, help: 'port to listen on'
, nargs: 1
}],
[['-k', '--keep-artifacts'] , {
@@ -79,7 +76,6 @@ var args = [
, required: false
, example: "/path/to/appium.log"
, help: 'Log output to this file instead of stdout'
, nargs: 1
}],
[['-G', '--webhook'] , {
@@ -87,7 +83,6 @@ var args = [
, required: false
, example: "localhost:9876"
, help: 'Also send log output to this HTTP listener'
, nargs: 1
}],
[['-w', '--warp'] , {
@@ -108,7 +103,6 @@ var args = [
, example: "com.example.android.myApp"
, help: "(Android-only) Java package of the Android app you want to run " +
"(e.g., com.example.android.myApp)"
, nargs: 1
}],
[['--app-activity'], {
@@ -118,7 +112,6 @@ var args = [
, example: "MainActivity"
, help: "(Android-only) Activity name for the Android activity you want " +
"to launch from your package (e.g., MainActivity)"
, nargs: 1
}],
[['--skip-install'], {

View File

@@ -24,7 +24,6 @@ var doWarpCheck = function(wantWarp, cb) {
};
var main = function(args, readyCb, doneCb) {
args.port = parseInt(args.port, 10);
var rest = express()
, server = http.createServer(rest);
if (typeof doneCb === "undefined") {