mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
// Copyright 2013 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/sky/shell/switches.h"
|
|
|
|
#include <iostream>
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
namespace switches {
|
|
|
|
const char kEnableCheckedMode[] = "enable-checked-mode";
|
|
const char kFLX[] = "flx";
|
|
const char kHelp[] = "help";
|
|
const char kNonInteractive[] = "non-interactive";
|
|
const char kMainDartFile[] = "dart-main";
|
|
const char kPackages[] = "packages";
|
|
const char kStartPaused[] = "start-paused";
|
|
const char kTraceStartup[] = "trace-startup";
|
|
const char kDeviceObservatoryPort[] = "observatory-port";
|
|
const char kAotSnapshotPath[] = "aot-snapshot-path";
|
|
const char kNoRedirectToSyslog[] = "no-redirect-to-syslog";
|
|
const char kCacheDirPath[] = "cache-dir-path";
|
|
const char kDartFlags[] = "dart-flags";
|
|
|
|
void PrintUsage(const std::string& executable_name) {
|
|
// clang-format off
|
|
std::cerr << "Usage: " << executable_name
|
|
<< " --" << kEnableCheckedMode
|
|
<< " --" << kNonInteractive
|
|
<< " --" << kStartPaused
|
|
<< " --" << kTraceStartup
|
|
<< " --" << kFLX << "=FLX"
|
|
<< " --" << kPackages << "=PACKAGES"
|
|
<< " --" << kDeviceObservatoryPort << "=8181"
|
|
<< " [ MAIN_DART ]" << std::endl;
|
|
// clang-format on
|
|
}
|
|
|
|
} // namespace switches
|
|
} // namespace shell
|
|
} // namespace sky
|